]> git.0d.be Git - empathy.git/commitdiff
CallWindow: remove redial menu
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 25 Jul 2011 18:14:30 +0000 (19:14 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 28 Jul 2011 08:00:38 +0000 (09:00 +0100)
src/empathy-call-window.c
src/empathy-call-window.ui

index d2d878fe4c80e60777908a9f8a7b60237fed5980..a732990359842fd772569e0ea921dfd201991ef2 100644 (file)
@@ -136,7 +136,6 @@ struct _EmpathyCallWindowPriv
   GtkWidget *toolbar;
   GtkWidget *bottom_toolbar;
   GtkWidget *pane;
-  GtkAction *redial;
   GtkAction *menu_sidebar;
   GtkAction *menu_fullscreen;
 
@@ -272,9 +271,6 @@ static gboolean empathy_call_window_video_output_motion_notify (
 static void empathy_call_window_video_menu_popup (EmpathyCallWindow *window,
   guint button);
 
-static void empathy_call_window_redial_cb (gpointer object,
-  EmpathyCallWindow *window);
-
 static void empathy_call_window_dialpad_cb (GtkToggleToolButton *button,
   EmpathyCallWindow *window);
 
@@ -1054,7 +1050,6 @@ empathy_call_window_init (EmpathyCallWindow *self)
     "dialpad", &priv->dialpad_button,
     "toolbar", &priv->toolbar,
     "bottom_toolbar", &priv->bottom_toolbar,
-    "menuredial", &priv->redial,
     "menusidebar", &priv->menu_sidebar,
     "ui_manager", &priv->ui_manager,
     "menufullscreen", &priv->menu_fullscreen,
@@ -1077,7 +1072,6 @@ empathy_call_window_init (EmpathyCallWindow *self)
   empathy_builder_connect (gui, self,
     "menuhangup", "activate", empathy_call_window_hangup_cb,
     "hangup", "clicked", empathy_call_window_hangup_cb,
-    "menuredial", "activate", empathy_call_window_redial_cb,
     "audiocall", "clicked", empathy_call_window_audio_call_cb,
     "videocall", "clicked", empathy_call_window_video_call_cb,
     "menusidebar", "toggled", empathy_call_window_sidebar_cb,
@@ -1938,7 +1932,6 @@ empathy_call_window_disconnected (EmpathyCallWindow *self,
 
       empathy_call_window_status_message (self, _("Disconnected"));
 
-      gtk_action_set_sensitive (priv->redial, TRUE);
       empathy_call_window_show_hangup_button (self, FALSE);
 
       /* Unsensitive the camera and mic button */
@@ -2424,7 +2417,6 @@ empathy_call_window_state_changed_cb (EmpathyCallHandler *handler,
 
   gtk_widget_set_sensitive (priv->camera_button, can_send_video);
 
-  gtk_action_set_sensitive (priv->redial, FALSE);
   empathy_call_window_show_hangup_button (self, TRUE);
 
   gtk_widget_set_sensitive (priv->mic_button, TRUE);
@@ -3206,25 +3198,9 @@ empathy_call_window_restart_call (EmpathyCallWindow *window)
 
   empathy_call_window_setup_avatars (window, priv->handler);
 
-  gtk_action_set_sensitive (priv->redial, FALSE);
   empathy_call_window_show_hangup_button (window, TRUE);
 }
 
-static void
-empathy_call_window_redial_cb (gpointer object,
-    EmpathyCallWindow *window)
-{
-  EmpathyCallWindowPriv *priv = GET_PRIV (window);
-
-  if (priv->call_state == CONNECTED)
-    priv->call_state = REDIALING;
-
-  empathy_call_handler_stop_call (priv->handler);
-
-  if (priv->call_state != CONNECTED)
-    empathy_call_window_restart_call (window);
-}
-
 static void
 empathy_call_window_dialpad_cb (GtkToggleToolButton *button,
     EmpathyCallWindow *window)
index 981d693bebd06a0998a0719e3ca7fbcb4de324b6..850d0e652bb606a3c2b9136756202829facb5cde 100644 (file)
             <property name="label" translatable="yes">Hang up</property>
           </object>
         </child>
-        <child>
-          <object class="GtkAction" id="menuredial">
-            <property name="stock_id">gtk-refresh</property>
-            <property name="name">menuredial</property>
-            <property name="label" translatable="yes">Redial</property>
-            <property name="sensitive">False</property>
-          </object>
-        </child>
         <child>
           <object class="GtkToggleAction" id="menusidebar">
             <property name="name">menusidebar</property>
@@ -68,7 +60,6 @@
       <menubar name="menubar1">
         <menu action="call">
           <menuitem action="menuhangup"/>
-          <menuitem action="menuredial"/>
         </menu>
         <menu action="view">
           <menuitem action="menufullscreen"/>