Mercurial > geeqie
comparison src/bar_comment.c @ 1810:c416d099a3dc
GTK marks several functions as deprecated
The following functions has been replaced and deprecated by version
2.20:
- GTK_WIDGET_CAN_FOCUS
- GTK_WIDGET_DRAWABLE
- GTK_WIDGET_HAS_FOCUS
- GTK_WIDGET_HAS_GRAB
- GTK_WIDGET_IS_SENSITIVE
- GTK_WIDGET_NO_WINDOW
- GTK_WIDGET_REALIZED
- GTK_WIDGET_SENSITIVE
- GTK_WIDGET_STATE
- GTK_WIDGET_TOPLEVEL
- GTK_WIDGET_VISIBLE
author | mow |
---|---|
date | Mon, 10 May 2010 11:32:56 +0000 |
parents | 956aab097ea7 |
children |
comparison
equal
deleted
inserted
replaced
1809:e1c18f81e637 | 1810:c416d099a3dc |
---|---|
139 PaneCommentData *pcd; | 139 PaneCommentData *pcd; |
140 | 140 |
141 pcd = g_object_get_data(G_OBJECT(bar), "pane_data"); | 141 pcd = g_object_get_data(G_OBJECT(bar), "pane_data"); |
142 if (!pcd) return FALSE; | 142 if (!pcd) return FALSE; |
143 | 143 |
144 #if GTK_CHECK_VERSION(2,20,0) | |
145 if (gtk_widget_has_focus(pcd->comment_view)) return gtk_widget_event(pcd->comment_view, event); | |
146 #else | |
144 if (GTK_WIDGET_HAS_FOCUS(pcd->comment_view)) return gtk_widget_event(pcd->comment_view, event); | 147 if (GTK_WIDGET_HAS_FOCUS(pcd->comment_view)) return gtk_widget_event(pcd->comment_view, event); |
148 #endif | |
145 | 149 |
146 return FALSE; | 150 return FALSE; |
147 } | 151 } |
148 | 152 |
149 static void bar_pane_comment_write_config(GtkWidget *pane, GString *outstr, gint indent) | 153 static void bar_pane_comment_write_config(GtkWidget *pane, GString *outstr, gint indent) |