diff options
author | 2010-05-13 21:38:12 +0200 | |
---|---|---|
committer | 2010-05-13 21:38:12 +0200 | |
commit | c70bec8a21dfbb5dd81769ef4be2e705eb34735c (patch) | |
tree | f87515cfcfb4df4146c5e38320e971bcb6eae2f0 /plugins/gtkui/search.c | |
parent | b8158df3229ca89fd984538c90e784629b293758 (diff) |
port to gtk3
Diffstat (limited to 'plugins/gtkui/search.c')
-rw-r--r-- | plugins/gtkui/search.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/gtkui/search.c b/plugins/gtkui/search.c index 89d0c7db..16f83236 100644 --- a/plugins/gtkui/search.c +++ b/plugins/gtkui/search.c @@ -100,7 +100,7 @@ on_searchentry_changed (GtkEditable *editable, void search_refresh (void) { - if (searchwin && GTK_WIDGET_VISIBLE (searchwin)) { + if (searchwin && gtk_widget_get_visible (searchwin)) { GtkWidget *pl = lookup_widget (searchwin, "searchlist"); ddb_listview_refresh (DDB_LISTVIEW (pl), DDB_REFRESH_VSCROLL | DDB_REFRESH_LIST | DDB_EXPOSE_LIST); } @@ -199,7 +199,7 @@ on_searchwin_configure_event (GtkWidget *widget, #else GdkWindowState window_state = gdk_window_get_state (G_OBJECT (widget)); #endif - if (!(window_state & GDK_WINDOW_STATE_MAXIMIZED) && GTK_WIDGET_VISIBLE (widget)) { + if (!(window_state & GDK_WINDOW_STATE_MAXIMIZED) && gtk_widget_get_visible (widget)) { int x, y; int w, h; gtk_window_get_position (GTK_WINDOW (widget), &x, &y); @@ -217,7 +217,7 @@ on_searchwin_window_state_event (GtkWidget *widget, GdkEventWindowState *event, gpointer user_data) { - if (!GTK_WIDGET_VISIBLE (widget)) { + if (!gtk_widget_get_visible (widget)) { return FALSE; } // based on pidgin maximization handler |