[nautilus] window: simplify code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] window: simplify code
- Date: Mon, 9 Jan 2012 22:24:07 +0000 (UTC)
commit d84023681be2f192ccbd4fe5c3b07631c683911f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 2 00:10:31 2012 +0100
window: simplify code
Fold function into the only caller.
src/nautilus-window.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index bd58cfc..b599933 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -156,15 +156,6 @@ static const struct {
#endif
};
-/* Unconditionally synchronize the GtkUIManager of WINDOW. */
-static void
-nautilus_window_ui_update (NautilusWindow *window)
-{
- g_assert (NAUTILUS_IS_WINDOW (window));
-
- gtk_ui_manager_ensure_update (window->details->ui_manager);
-}
-
void
nautilus_window_push_status (NautilusWindow *window,
const char *text)
@@ -1659,8 +1650,8 @@ nautilus_window_show (GtkWidget *widget)
}
GTK_WIDGET_CLASS (nautilus_window_parent_class)->show (widget);
-
- nautilus_window_ui_update (window);
+
+ gtk_ui_manager_ensure_update (window->details->ui_manager);
}
GtkUIManager *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]