]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtktextbufferrichtext.c
textview: Use GtkSelectionWindow for touch text selection
[~andy/gtk] / gtk / gtktextbufferrichtext.c
index e4e6836afcf6f29e5768cdb4ac49706d32547905..2c5d228daede2130bd328ebb33d55ec57f2c7322 100644 (file)
@@ -14,9 +14,7 @@
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #include "config.h"
@@ -797,8 +795,7 @@ free_format (GtkRichTextFormat *format)
 static void
 free_format_list (GList *formats)
 {
-  g_list_foreach (formats, (GFunc) free_format, NULL);
-  g_list_free (formats);
+  g_list_free_full (formats, (GDestroyNotify) free_format);
 }
 
 static GQuark