]> git.0d.be Git - empathy.git/commitdiff
assistant: store the ID of the current page
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 10 Feb 2010 11:37:38 +0000 (11:37 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 10 Feb 2010 13:58:40 +0000 (13:58 +0000)
This will make easier to know from which page we are coming in
impl_signal_prepare.

src/empathy-account-assistant.c

index 9e835ec25cab0504360f425803104fe6685abe2d..a7a142cb0f04f47e7046eae976f7f11a52e12e95 100644 (file)
@@ -75,6 +75,7 @@ typedef struct {
   gboolean enter_create_forward;
   TpAccountManager *account_mgr;
   EmpathyConnectionManagers *connection_mgrs;
+  gint current_page_id;
 
   /* enter or create page */
   GtkWidget *enter_or_create_page;
@@ -893,6 +894,7 @@ impl_signal_prepare (GtkAssistant *assistant,
   gint current_idx;
 
   current_idx = gtk_assistant_get_current_page (assistant);
+  priv->current_page_id = current_idx;
 
   if (current_idx >= PAGE_ENTER_CREATE)
     {