From 5bbe4a3b2586f04a855c1aaf5d58b09921adac4b Mon Sep 17 00:00:00 2001 From: jtellier Date: Mon, 11 May 2009 13:57:32 -0400 Subject: Usability fix: The "Leave Fullscreen" button is now using the "gtk-leave-fullscreen" stock id instead of "gtk-fullscreen". --- src/empathy-call-window-fullscreen.ui | 2 +- src/empathy-call-window.c | 4 ++++ src/empathy-call-window.ui | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/empathy-call-window-fullscreen.ui b/src/empathy-call-window-fullscreen.ui index 90ac333d7..5bf5e509b 100644 --- a/src/empathy-call-window-fullscreen.ui +++ b/src/empathy-call-window-fullscreen.ui @@ -12,7 +12,7 @@ - gtk-fullscreen + gtk-leave-fullscreen True True True diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index fe633045a..c15b5a6b5 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -88,6 +88,7 @@ struct _EmpathyCallWindowPriv GtkWidget *toolbar; GtkWidget *pane; GtkAction *send_video; + GtkAction *menu_fullscreen; /* We keep a reference on the hbox which contains the main content so we can easilly repack everything when toggling fullscreen */ @@ -524,6 +525,7 @@ empathy_call_window_init (EmpathyCallWindow *self) "toolbar", &priv->toolbar, "send_video", &priv->send_video, "ui_manager", &priv->ui_manager, + "menufullscreen", &priv->menu_fullscreen, NULL); empathy_builder_connect (gui, self, @@ -1335,6 +1337,8 @@ empathy_call_window_state_event_cb (GtkWidget *widget, set_fullscreen); show_controls (window, set_fullscreen); show_borders (window, set_fullscreen); + gtk_action_set_stock_id(priv->menu_fullscreen, + (set_fullscreen ? "gtk-leave-fullscreen" : "gtk-fullscreen")); priv->is_fullscreen = set_fullscreen; } diff --git a/src/empathy-call-window.ui b/src/empathy-call-window.ui index 33a71eef6..a0e1e1304 100644 --- a/src/empathy-call-window.ui +++ b/src/empathy-call-window.ui @@ -40,7 +40,6 @@ gtk-fullscreen menufullscreen - Fullscreen -- cgit v1.2.3