changeset 1964:47b2a4ce3894

Use setWidgetHasFocus() and prevent GTK deprecated warnings.
author Laurent Monin <zas@norz.org>
date Sat, 22 Jan 2011 12:19:14 +0100
parents 98bc67f15914
children 8fc175341a58
files src/ui_tree_edit.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui_tree_edit.c	Sat Jan 22 11:33:54 2011 +0100
+++ b/src/ui_tree_edit.c	Sat Jan 22 12:19:14 2011 +0100
@@ -22,6 +22,7 @@
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 
+#include "compat.h"
 #include "ui_tree_edit.h"
 
 /*
@@ -164,7 +165,7 @@
 	/* explicitely set the focus flag for the entry, for some reason on popup windows this
 	 * is not set, and causes no edit cursor to appear ( popups not allowed focus? )
 	 */
-	GTK_WIDGET_SET_FLAGS(ted->entry, GTK_HAS_FOCUS);
+	setWidgetHasFocus(ted->entry, TRUE);
 	gtk_grab_add(ted->window);
 	gdk_pointer_grab(ted->window->window, TRUE,
 			 GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_BUTTON_MOTION_MASK,