[empathy: 89/99] Adapt to EmpathySidebar -> EvSidebar
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 89/99] Adapt to EmpathySidebar -> EvSidebar
- Date: Thu, 9 Jun 2011 09:56:49 +0000 (UTC)
commit 033a72c1af2eeef7cae6d7f8712b56437ce787bd
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Wed Jun 8 19:06:36 2011 +0100
Adapt to EmpathySidebar -> EvSidebar
src/empathy-call-window.c | 25 ++++++++++++-------------
telepathy-yell | 2 +-
2 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index ba7d2d4..860153d 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -240,7 +240,7 @@ static void empathy_call_window_sidebar_hidden_cb (EvSidebar *sidebar,
static void empathy_call_window_sidebar_shown_cb (EvSidebar *sidebar,
EmpathyCallWindow *window);
-static void empathy_call_window_sidebar_changed_cb (EmpathySidebar *sidebar,
+static void empathy_call_window_sidebar_changed_cb (EvSidebar *sidebar,
GParamSpec *pspec,
EmpathyCallWindow *window);
@@ -2925,7 +2925,7 @@ empathy_call_window_sidebar_toggled_cb (GtkToggleButton *toggle,
GtkWidget *arrow;
int w, h, handle_size;
GtkAllocation allocation, sidebar_allocation;
- GtkWidget *page;
+ gchar *page;
gboolean active, dialpad_shown;
gtk_widget_get_allocation (GTK_WIDGET (window), &allocation);
@@ -2956,9 +2956,9 @@ empathy_call_window_sidebar_toggled_cb (GtkToggleButton *toggle,
gtk_window_resize (GTK_WINDOW (window), w, h);
/* Update the 'Dialpad' menu */
- g_object_get (priv->sidebar, "current-page", &page, NULL);
- dialpad_shown = active && page == priv->dtmf_panel;
- g_object_unref (page);
+ page = ev_sidebar_get_current_page (EV_SIDEBAR (priv->sidebar));
+ dialpad_shown = active && !tp_strdiff (page, "dialpad");
+ g_free (page);
empathy_call_window_update_dialpad_menu (window, dialpad_shown);
}
@@ -3042,16 +3042,16 @@ empathy_call_window_sidebar_shown_cb (EvSidebar *sidebar,
}
static void
-empathy_call_window_sidebar_changed_cb (EmpathySidebar *sidebar,
+empathy_call_window_sidebar_changed_cb (EvSidebar *sidebar,
GParamSpec *pspec,
EmpathyCallWindow *window)
{
- EmpathyCallWindowPriv *priv = GET_PRIV (window);
- GtkWidget *page;
+ gchar *page;
- g_object_get (sidebar, "current-page", &page, NULL);
- empathy_call_window_update_dialpad_menu (window, page == priv->dtmf_panel);
- g_object_unref (page);
+ page = ev_sidebar_get_current_page (sidebar);
+ empathy_call_window_update_dialpad_menu (window,
+ !tp_strdiff (page, "dialpad"));
+ g_free (page);
}
static void
@@ -3126,8 +3126,7 @@ empathy_call_window_dialpad_cb (GtkToggleAction *menu,
active = gtk_toggle_action_get_active (menu);
if (active)
- empathy_sidebar_set_page (EMPATHY_SIDEBAR (priv->sidebar),
- priv->dtmf_panel);
+ ev_sidebar_set_current_page (EV_SIDEBAR (priv->sidebar), "dialpad");
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->sidebar_button),
active);
diff --git a/telepathy-yell b/telepathy-yell
index 4736796..301cee6 160000
--- a/telepathy-yell
+++ b/telepathy-yell
@@ -1 +1 @@
-Subproject commit 47367965cd8f9ed9b72e8660f3f6887546e59927
+Subproject commit 301cee6d78085d746647373454c8ac0d2affb891
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]