[dia] [PATCH] Remove GTK_CHECK_VERSION checks up to 2.10.0.



commit c2a5594285f930558400ce5e7ab3bb2d03ba0ad8
Author: Hans Breuer <hans breuer org>
Date:   Fri Jul 31 19:23:39 2009 +0200

    [PATCH] Remove GTK_CHECK_VERSION checks up to 2.10.0.
    
    We can do this because configure.in currently assumes >=2.12.

 lib/dialinechooser.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/lib/dialinechooser.c b/lib/dialinechooser.c
index af09df3..6213c78 100644
--- a/lib/dialinechooser.c
+++ b/lib/dialinechooser.c
@@ -315,16 +315,9 @@ dia_line_chooser_init (DiaLineChooser *lchooser)
   lchooser->selector = DIALINESTYLESELECTOR(wid);
 
   menu = gtk_menu_new();
-#if GLIB_CHECK_VERSION(2,10,0)
   g_object_ref_sink(GTK_OBJECT(menu));
   g_object_set_data_full(G_OBJECT(lchooser), button_menu_key, menu,
 			 (GDestroyNotify)g_object_unref);
-#else
-  g_object_ref(G_OBJECT(menu));
-  gtk_object_sink(GTK_OBJECT(menu));
-  g_object_set_data_full(G_OBJECT(lchooser), button_menu_key, menu,
-			 (GDestroyNotify)g_object_unref);
-#endif
   for (i = 0; i <= LINESTYLE_DOTTED; i++) {
     mi = gtk_menu_item_new();
     g_object_set_data(G_OBJECT(mi), menuitem_enum_key, GINT_TO_POINTER(i));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]