[dia] Remove GLIB_CHECK_VERSION(2,10,0)



commit 9d39ca87a080d60f08ce67a7fbf18dbdbee3d9bd
Author: Hans Breuer <hans breuer org>
Date:   Sat Apr 2 14:01:12 2011 +0200

    Remove GLIB_CHECK_VERSION(2,10,0)
    
    Lowest supported GLib version is 2.20.0 atm.

 app/defaults.c                |    5 -----
 app/properties-dialog.c       |    5 -----
 app/sheets_dialog_callbacks.c |    4 ----
 3 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/app/defaults.c b/app/defaults.c
index 8c65acb..737a6e3 100644
--- a/app/defaults.c
+++ b/app/defaults.c
@@ -62,12 +62,7 @@ static void create_dialog()
   no_defaults_dialog = gtk_label_new(_("This object has no defaults."));
   gtk_widget_show (no_defaults_dialog);
 
-#if GLIB_CHECK_VERSION(2,10,0)
   g_object_ref_sink(GTK_OBJECT(no_defaults_dialog));
-#else
-  g_object_ref(GTK_OBJECT(no_defaults_dialog));
-  gtk_object_sink(GTK_OBJECT(no_defaults_dialog));
-#endif
 }
 
 static gint
diff --git a/app/properties-dialog.c b/app/properties-dialog.c
index 00821c8..16e086b 100644
--- a/app/properties-dialog.c
+++ b/app/properties-dialog.c
@@ -84,12 +84,7 @@ create_dialog(GtkWidget *parent)
 
   no_properties_dialog = gtk_label_new(_("This object has no properties."));
   gtk_widget_show (no_properties_dialog);
-#if GLIB_CHECK_VERSION(2,10,0)
   g_object_ref_sink (G_OBJECT (no_properties_dialog));
-#else
-  g_object_ref (G_OBJECT (no_properties_dialog));
-  gtk_object_sink (GTK_OBJECT (no_properties_dialog));
-#endif
 }
 
 /* when the dialog gets destroyed we need to drop our references */
diff --git a/app/sheets_dialog_callbacks.c b/app/sheets_dialog_callbacks.c
index 2307c1c..37d6ee4 100644
--- a/app/sheets_dialog_callbacks.c
+++ b/app/sheets_dialog_callbacks.c
@@ -1783,11 +1783,7 @@ touch_file(gchar *filename)
   g_stat(filename, &stat_buf);
   utim_buf.actime = stat_buf.st_atime;
   utim_buf.modtime = time(NULL);
-#if GLIB_CHECK_VERSION(2,18,0)
   g_utime(filename, &utim_buf);
-#else
-  utime(filename, &utim_buf);
-#endif
 }
 
 static gint



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