diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2010-03-04 15:44:05 +0100 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2010-03-04 15:44:05 +0100 |
commit | 4f870048b8d6754e29dd5ed0c4104f453caf7d3b (patch) | |
tree | 1672c588d6485ee0ee87e55d75f0f0e2c129f969 /src | |
parent | af9305deb5a699fa430599685f25ad363d280808 (diff) | |
download | nautilus-4f870048b8d6754e29dd5ed0c4104f453caf7d3b.tar.gz |
Replace deprecated GTK_WIDGET_* macros and depend on newer GTK+
Diffstat (limited to 'src')
-rw-r--r-- | src/file-manager/fm-list-view.c | 4 | ||||
-rw-r--r-- | src/file-manager/fm-properties-window.c | 2 | ||||
-rw-r--r-- | src/file-manager/fm-tree-view.c | 2 | ||||
-rw-r--r-- | src/nautilus-application.c | 2 | ||||
-rw-r--r-- | src/nautilus-bookmarks-window.c | 2 | ||||
-rw-r--r-- | src/nautilus-navigation-window-pane.c | 6 | ||||
-rw-r--r-- | src/nautilus-navigation-window.c | 4 | ||||
-rw-r--r-- | src/nautilus-notebook.c | 2 | ||||
-rw-r--r-- | src/nautilus-pathbar.c | 12 | ||||
-rw-r--r-- | src/nautilus-side-pane.c | 2 | ||||
-rw-r--r-- | src/nautilus-spatial-window.c | 2 | ||||
-rw-r--r-- | src/nautilus-window-manage-views.c | 8 | ||||
-rw-r--r-- | src/nautilus-window.c | 2 | ||||
-rw-r--r-- | src/nautilus-zoom-control.c | 2 |
14 files changed, 26 insertions, 26 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c index dda571e65..2ba25f4f2 100644 --- a/src/file-manager/fm-list-view.c +++ b/src/file-manager/fm-list-view.c @@ -970,7 +970,7 @@ key_press_callback (GtkWidget *widget, GdkEventKey *event, gpointer callback_dat handled = FALSE; break; } - if (!GTK_WIDGET_HAS_FOCUS (GTK_WIDGET (FM_LIST_VIEW (view)->details->tree_view))) { + if (!gtk_widget_has_focus (GTK_WIDGET (FM_LIST_VIEW (view)->details->tree_view))) { handled = FALSE; break; } @@ -2594,7 +2594,7 @@ fm_list_view_click_policy_changed (FMDirectoryView *directory_view) } tree = view->details->tree_view; - if (GTK_WIDGET_REALIZED (GTK_WIDGET (tree))) { + if (gtk_widget_get_realized (GTK_WIDGET (tree))) { win = GTK_WIDGET (tree)->window; gdk_window_set_cursor (win, NULL); diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index f1577bb65..845a7c93d 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -833,7 +833,7 @@ name_field_focus_out (NautilusEntry *name_field, { g_assert (FM_IS_PROPERTIES_WINDOW (callback_data)); - if (GTK_WIDGET_SENSITIVE (name_field)) { + if (gtk_widget_get_sensitive (GTK_WIDGET (name_field))) { name_field_done_editing (name_field, FM_PROPERTIES_WINDOW (callback_data)); } diff --git a/src/file-manager/fm-tree-view.c b/src/file-manager/fm-tree-view.c index 45ef18bf3..de9523dd3 100644 --- a/src/file-manager/fm-tree-view.c +++ b/src/file-manager/fm-tree-view.c @@ -226,7 +226,7 @@ show_selection_idle_callback (gpointer callback_data) (view->details->sort_model, path); gtk_tree_path_free (path); gtk_tree_view_set_cursor (view->details->tree_widget, sort_path, NULL, FALSE); - if (GTK_WIDGET_REALIZED (view->details->tree_widget)) { + if (gtk_widget_get_realized (GTK_WIDGET (view->details->tree_widget))) { gtk_tree_view_scroll_to_cell (view->details->tree_widget, sort_path, NULL, FALSE, 0, 0); } gtk_tree_path_free (sort_path); diff --git a/src/nautilus-application.c b/src/nautilus-application.c index 9c48736a7..6a596eb77 100644 --- a/src/nautilus-application.c +++ b/src/nautilus-application.c @@ -736,7 +736,7 @@ open_window (NautilusApplication *application, g_object_unref (location); } - if (geometry != NULL && !GTK_WIDGET_VISIBLE (window)) { + if (geometry != NULL && !gtk_widget_get_visible (GTK_WIDGET (window))) { /* never maximize windows opened from shell if a * custom geometry has been requested. */ diff --git a/src/nautilus-bookmarks-window.c b/src/nautilus-bookmarks-window.c index 78a3a6ba6..98fc4c2ce 100644 --- a/src/nautilus-bookmarks-window.c +++ b/src/nautilus-bookmarks-window.c @@ -499,7 +499,7 @@ nautilus_bookmarks_window_save_geometry (GtkWindow *window) g_return_if_fail (NAUTILUS_IS_BOOKMARK_LIST (bookmarks)); /* Don't bother if window is already closed */ - if (GTK_WIDGET_VISIBLE (window)) { + if (gtk_widget_get_visible (GTK_WIDGET (window))) { char *geometry_string; geometry_string = eel_gtk_window_get_geometry_string (window); diff --git a/src/nautilus-navigation-window-pane.c b/src/nautilus-navigation-window-pane.c index bc49cb526..65359cfca 100644 --- a/src/nautilus-navigation-window-pane.c +++ b/src/nautilus-navigation-window-pane.c @@ -721,7 +721,7 @@ gboolean nautilus_navigation_window_pane_path_bar_showing (NautilusNavigationWindowPane *pane) { if (pane->path_bar != NULL) { - return GTK_WIDGET_VISIBLE (pane->path_bar); + return gtk_widget_get_visible (pane->path_bar); } /* If we're not visible yet we haven't changed visibility, so its TRUE */ return TRUE; @@ -771,7 +771,7 @@ gboolean nautilus_navigation_window_pane_search_bar_showing (NautilusNavigationWindowPane *pane) { if (pane->search_bar != NULL) { - return GTK_WIDGET_VISIBLE (pane->search_bar); + return gtk_widget_get_visible (pane->search_bar); } /* If we're not visible yet we haven't changed visibility, so its TRUE */ return TRUE; @@ -806,7 +806,7 @@ nautilus_navigation_window_pane_location_bar_showing (NautilusNavigationWindowPa return FALSE; } if (pane->location_bar != NULL) { - return GTK_WIDGET_VISIBLE (pane->location_bar); + return gtk_widget_get_visible (pane->location_bar); } /* If we're not visible yet we haven't changed visibility, so its TRUE */ return TRUE; diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c index a85265647..0033525e3 100644 --- a/src/nautilus-navigation-window.c +++ b/src/nautilus-navigation-window.c @@ -892,7 +892,7 @@ gboolean nautilus_navigation_window_toolbar_showing (NautilusNavigationWindow *window) { if (window->details->toolbar != NULL) { - return GTK_WIDGET_VISIBLE (window->details->toolbar); + return gtk_widget_get_visible (window->details->toolbar); } /* If we're not visible yet we haven't changed visibility, so its TRUE */ return TRUE; @@ -926,7 +926,7 @@ gboolean nautilus_navigation_window_status_bar_showing (NautilusNavigationWindow *window) { if (NAUTILUS_WINDOW (window)->details->statusbar != NULL) { - return GTK_WIDGET_VISIBLE (NAUTILUS_WINDOW (window)->details->statusbar); + return gtk_widget_get_visible (NAUTILUS_WINDOW (window)->details->statusbar); } /* If we're not visible yet we haven't changed visibility, so its TRUE */ return TRUE; diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c index d05290cd3..58003b9c4 100644 --- a/src/nautilus-notebook.c +++ b/src/nautilus-notebook.c @@ -176,7 +176,7 @@ find_tab_num_at_pos (NautilusNotebook *notebook, gint abs_x, gint abs_y) tab = gtk_notebook_get_tab_label (nb, page); g_return_val_if_fail (tab != NULL, -1); - if (!GTK_WIDGET_MAPPED (GTK_WIDGET (tab))) + if (!gtk_widget_get_mapped (GTK_WIDGET (tab))) { page_num++; continue; diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c index 3ec19981a..df39db0ec 100644 --- a/src/nautilus-pathbar.c +++ b/src/nautilus-pathbar.c @@ -228,7 +228,7 @@ slider_timeout (gpointer user_data) path_bar->drag_slider_timeout = 0; - if (GTK_WIDGET_VISIBLE (GTK_WIDGET (path_bar))) { + if (gtk_widget_get_visible (GTK_WIDGET (path_bar))) { if (path_bar->drag_slider_timeout_for_up_button) { nautilus_path_bar_scroll_up (path_bar); } else { @@ -780,7 +780,7 @@ static void nautilus_path_bar_remove_1 (GtkContainer *container, GtkWidget *widget) { - gboolean was_visible = GTK_WIDGET_VISIBLE (widget); + gboolean was_visible = gtk_widget_get_visible (widget); gtk_widget_unparent (widget); if (was_visible) { gtk_widget_queue_resize (GTK_WIDGET (container)); @@ -944,10 +944,10 @@ nautilus_path_bar_scroll_timeout (NautilusPathBar *path_bar) GDK_THREADS_ENTER (); if (path_bar->timer) { - if (GTK_WIDGET_HAS_FOCUS (path_bar->up_slider_button)) { + if (gtk_widget_has_focus (path_bar->up_slider_button)) { nautilus_path_bar_scroll_up (path_bar); } else { - if (GTK_WIDGET_HAS_FOCUS (path_bar->down_slider_button)) { + if (gtk_widget_has_focus (path_bar->down_slider_button)) { nautilus_path_bar_scroll_down (path_bar); } } @@ -984,7 +984,7 @@ nautilus_path_bar_slider_button_press (GtkWidget *widget, GdkEventButton *event, NautilusPathBar *path_bar) { - if (!GTK_WIDGET_HAS_FOCUS (widget)) { + if (!gtk_widget_has_focus (widget)) { gtk_widget_grab_focus (widget); } @@ -1040,7 +1040,7 @@ static void nautilus_path_bar_state_changed (GtkWidget *widget, GtkStateType previous_state) { - if (!GTK_WIDGET_IS_SENSITIVE (widget)) { + if (!gtk_widget_get_sensitive (widget)) { nautilus_path_bar_stop_scrolling (NAUTILUS_PATH_BAR (widget)); } } diff --git a/src/nautilus-side-pane.c b/src/nautilus-side-pane.c index 341c76848..6dcb1b748 100644 --- a/src/nautilus-side-pane.c +++ b/src/nautilus-side-pane.c @@ -210,7 +210,7 @@ menu_position_under (GtkMenu *menu, GtkWidget *widget; g_return_if_fail (GTK_IS_BUTTON (user_data)); - g_return_if_fail (GTK_WIDGET_NO_WINDOW (user_data)); + g_return_if_fail (!gtk_widget_get_has_window (GTK_WIDGET (user_data))); widget = GTK_WIDGET (user_data); diff --git a/src/nautilus-spatial-window.c b/src/nautilus-spatial-window.c index c9177aef6..169fe8748 100644 --- a/src/nautilus-spatial-window.c +++ b/src/nautilus-spatial-window.c @@ -131,7 +131,7 @@ nautilus_spatial_window_configure_event (GtkWidget *widget, if (window->details->save_geometry_timeout_id != 0) { g_source_remove (window->details->save_geometry_timeout_id); } - if (GTK_WIDGET_VISIBLE (GTK_WIDGET (window)) && !NAUTILUS_IS_DESKTOP_WINDOW (window)) { + if (gtk_widget_get_visible (GTK_WIDGET (window)) && !NAUTILUS_IS_DESKTOP_WINDOW (window)) { geometry_string = eel_gtk_window_get_geometry_string (GTK_WINDOW (window)); /* If the last geometry is NULL the window must have just diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c index 66a56496b..ac3d6bc0f 100644 --- a/src/nautilus-window-manage-views.c +++ b/src/nautilus-window-manage-views.c @@ -594,7 +594,7 @@ nautilus_window_slot_open_location_full (NautilusWindowSlot *slot, if ((flags & NAUTILUS_WINDOW_OPEN_FLAG_CLOSE_BEHIND) != 0) { if (NAUTILUS_IS_SPATIAL_WINDOW (window) && !NAUTILUS_IS_DESKTOP_WINDOW (window)) { - if (GTK_WIDGET_VISIBLE (target_window)) { + if (gtk_widget_get_visible (GTK_WIDGET (target_window))) { nautilus_window_close (window); } else { g_signal_connect_object (target_window, @@ -1120,7 +1120,7 @@ got_file_info_for_view_selection_callback (NautilusFile *file, } if (view_id != NULL) { - if (!GTK_WIDGET_VISIBLE (window) && NAUTILUS_IS_SPATIAL_WINDOW (window)) { + if (!gtk_widget_get_visible (GTK_WIDGET (window)) && NAUTILUS_IS_SPATIAL_WINDOW (window)) { /* We now have the metadata to set up the window position, etc */ setup_new_spatial_window (slot, file); } @@ -1130,7 +1130,7 @@ got_file_info_for_view_selection_callback (NautilusFile *file, display_view_selection_failure (window, file, location, error); - if (!GTK_WIDGET_VISIBLE (GTK_WIDGET (window))) { + if (!gtk_widget_get_visible (GTK_WIDGET (window))) { /* Destroy never-had-a-chance-to-be-seen window. This case * happens when a new window cannot display its initial URI. */ @@ -1817,7 +1817,7 @@ nautilus_window_report_view_failed (NautilusWindow *window, fallback_load_location = g_object_ref (slot->pending_location); } else { - if (!GTK_WIDGET_VISIBLE (window)) { + if (!gtk_widget_get_visible (GTK_WIDGET (window))) { do_close_window = TRUE; } } diff --git a/src/nautilus-window.c b/src/nautilus-window.c index c2194fc05..b822500ec 100644 --- a/src/nautilus-window.c +++ b/src/nautilus-window.c @@ -359,7 +359,7 @@ nautilus_window_sync_allow_stop (NautilusWindow *window, gtk_action_set_sensitive (action, slot->allow_stop); } - if (GTK_WIDGET_REALIZED (GTK_WIDGET (window))) { + if (gtk_widget_get_realized (GTK_WIDGET (window))) { update_cursor (window); } diff --git a/src/nautilus-zoom-control.c b/src/nautilus-zoom-control.c index e0b7a9711..c055006a7 100644 --- a/src/nautilus-zoom-control.c +++ b/src/nautilus-zoom-control.c @@ -159,7 +159,7 @@ menu_position_under_widget (GtkMenu *menu, gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); gdk_window_get_origin (widget->window, x, y); - if (GTK_WIDGET_NO_WINDOW (widget)) { + if (!gtk_widget_get_has_window (widget)) { *x += widget->allocation.x; *y += widget->allocation.y; } |