[Gnucash-changes] r13328 - gnucash/trunk/src - Factor out a compat definition of GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID

Chris Shoemaker chris at cvs.gnucash.org
Mon Feb 20 15:09:02 EST 2006


Author: chris
Date: 2006-02-20 15:09:02 -0500 (Mon, 20 Feb 2006)
New Revision: 13328
Trac: http://svn.gnucash.org/trac/changeset/13328

Modified:
   gnucash/trunk/src/gtk-compat.h
   gnucash/trunk/src/import-export/hbci/dialog-hbcitrans.c
   gnucash/trunk/src/register/register-gnome/gnucash-item-list.c
Log:
   Factor out a compat definition of GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID
   into gtk-compat.h.


Modified: gnucash/trunk/src/gtk-compat.h
===================================================================
--- gnucash/trunk/src/gtk-compat.h	2006-02-20 19:55:36 UTC (rev 13327)
+++ gnucash/trunk/src/gtk-compat.h	2006-02-20 20:09:02 UTC (rev 13328)
@@ -23,4 +23,7 @@
        g_object_set(action, "sensitive", xxx, NULL)
 #define	gtk_action_set_visible(action, xxx) \
        g_object_set(action, "visible", xxx, NULL)
+
+#define GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID -2
 #endif
+

Modified: gnucash/trunk/src/import-export/hbci/dialog-hbcitrans.c
===================================================================
--- gnucash/trunk/src/import-export/hbci/dialog-hbcitrans.c	2006-02-20 19:55:36 UTC (rev 13327)
+++ gnucash/trunk/src/import-export/hbci/dialog-hbcitrans.c	2006-02-20 20:09:02 UTC (rev 13328)
@@ -43,6 +43,7 @@
 #endif
 #include <iconv.h>
 
+#include "gtk-compat.h"
 #include "dialog-utils.h"
 #include "gnc-ui.h"
 #include "gnc-amount-edit.h"
@@ -57,10 +58,6 @@
 
 #define TEMPLATE_LABEL "template"
 
-#ifndef HAVE_GLIB26
-#define GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID -2
-#endif
-
 typedef enum {
 	TEMPLATE_NAME,
 	TEMPLATE_POINTER,

Modified: gnucash/trunk/src/register/register-gnome/gnucash-item-list.c
===================================================================
--- gnucash/trunk/src/register/register-gnome/gnucash-item-list.c	2006-02-20 19:55:36 UTC (rev 13327)
+++ gnucash/trunk/src/register/register-gnome/gnucash-item-list.c	2006-02-20 20:09:02 UTC (rev 13328)
@@ -35,8 +35,8 @@
 #include "gnc-engine.h"
 #include "gnucash-item-list.h"
 #include "gnucash-scrolled-window.h"
+#include "gtk-compat.h"
 
-
 /* Item list signals */
 enum {
   SELECT_ITEM,
@@ -46,10 +46,6 @@
   LAST_SIGNAL
 };
 
-#ifndef HAVE_GLIB26
-#define GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID -2
-#endif
-
 static GnomeCanvasWidgetClass *gnc_item_list_parent_class;
 static guint gnc_item_list_signals[LAST_SIGNAL];
 



More information about the gnucash-changes mailing list