[vinagre] Mark only the connect action as being important
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Mark only the connect action as being important
- Date: Sat, 16 Apr 2011 12:24:47 +0000 (UTC)
commit fcca613725beea5ae8b52d4461a76c97a3fe57cb
Author: David King <amigadave amigadave com>
Date: Sat Apr 16 14:17:05 2011 +0200
Mark only the connect action as being important
This change ensures that only the connect toolitem has an associated
label when GTK_TOOLBAR_BOTH_HORIZ mode is set. Fixes bug 591369.
vinagre/vinagre-window.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/vinagre/vinagre-window.c b/vinagre/vinagre-window.c
index fd646c3..21862db 100644
--- a/vinagre/vinagre-window.c
+++ b/vinagre/vinagre-window.c
@@ -367,7 +367,7 @@ create_menu_bar_and_toolbar (VinagreWindow *window,
window->priv->always_sensitive_action_group = action_group;
action = gtk_action_group_get_action (action_group, "MachineConnect");
- g_object_set (action, "is_important", TRUE, NULL);
+ gtk_action_set_is_important (action, TRUE);
/* Machine connected actions */
action_group = gtk_action_group_new ("VinagreWindowMachineConnectedActions");
@@ -381,9 +381,6 @@ create_menu_bar_and_toolbar (VinagreWindow *window,
g_object_unref (action_group);
window->priv->machine_connected_action_group = action_group;
- action = gtk_action_group_get_action (action_group, "MachineClose");
- g_object_set (action, "is_important", TRUE, NULL);
-
/* Machine initialized actions */
action_group = gtk_action_group_new ("VinagreWindowMachineInitializedActions");
gtk_action_group_set_translation_domain (action_group, NULL);
@@ -396,11 +393,6 @@ create_menu_bar_and_toolbar (VinagreWindow *window,
g_object_unref (action_group);
window->priv->machine_initialized_action_group = action_group;
- action = gtk_action_group_get_action (action_group, "ViewFullScreen");
- g_object_set (action, "is_important", TRUE, NULL);
- action = gtk_action_group_get_action (action_group, "MachineTakeScreenshot");
- g_object_set (action, "is_important", TRUE, NULL);
-
/* now load the UI definition */
gtk_ui_manager_add_ui_from_file (manager, vinagre_utils_get_ui_xml_filename (), &error);
if (error != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]