diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-07-11 18:35:36 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-07-11 18:35:36 +0000 |
commit | 5ad2293f4036678eefbe9a3c6239a05b52d9d282 (patch) | |
tree | 53535560f5a45f4af086db485bbd058175d4b15b /gtk/gui_utils.c | |
parent | 2c469e3714c36cc39099394042d7e8f85f8ef371 (diff) | |
download | wireshark-5ad2293f4036678eefbe9a3c6239a05b52d9d282.tar.gz |
More GLIB_CHECK_VERSION and GTK_CHECK_VERSION cleanup.
svn path=/trunk/; revision=37971
Diffstat (limited to 'gtk/gui_utils.c')
-rw-r--r-- | gtk/gui_utils.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/gui_utils.c b/gtk/gui_utils.c index 1f1ab8009a..234d8b6ba8 100644 --- a/gtk/gui_utils.c +++ b/gtk/gui_utils.c @@ -369,12 +369,12 @@ window_set_geometry(GtkWidget *widget, window_geometry_t *geom) * If the requested (x,y) position isn't within the monitor's * viewable area, change it to the viewable area's (0,0). */ - default_screen = gdk_screen_get_default(); + default_screen = gdk_screen_get_default(); monitor_num = gdk_screen_get_monitor_at_point(default_screen, geom->x, geom->y); gdk_screen_get_monitor_geometry(default_screen, monitor_num, &viewable_area); - + if(geom->x < viewable_area.x || geom->x > viewable_area.width) geom->x = viewable_area.x; @@ -847,7 +847,7 @@ void reactivate_window(GtkWidget *win) { GdkWindow *win_window; - + #if GTK_CHECK_VERSION(2,14,0) win_window = gtk_widget_get_window(win); #else @@ -1363,9 +1363,7 @@ switch_to_fixed_col(GtkTreeView *view) } g_list_free(list); -#if GTK_CHECK_VERSION(2,6,0) gtk_tree_view_set_fixed_height_mode(view, TRUE); -#endif } gint |