[gnome-terminal] appmenu: Open global prefs dialogue



commit bda7df7c542738f543448f8e1147c7ddc6472ea9
Author: Christian Persch <chpe gnome org>
Date:   Sun Mar 10 16:14:05 2013 +0100

    appmenu: Open global prefs dialogue
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695571

 src/terminal-app.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/terminal-app.c b/src/terminal-app.c
index 5fa590b..448e1ae 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -251,17 +251,12 @@ app_menu_preferences_cb (GSimpleAction *action,
 {
   TerminalApp *app = user_data;
   GtkWindow *window;
-  TerminalScreen *screen;
 
   window = gtk_application_get_active_window (GTK_APPLICATION (app));
   if (!TERMINAL_IS_WINDOW (window))
     return;
 
-  screen = terminal_window_get_active (TERMINAL_WINDOW (window));
-  if (!TERMINAL_IS_SCREEN (screen))
-    return;
-
-  terminal_app_edit_profile (app, terminal_screen_get_profile (screen), window, NULL);
+  terminal_app_edit_preferences (app, window);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]