[gtranslator] Properly initialize GtrContextPanel



commit 3cf25fabc564e0c9226dbe5534785d0bb444d01a
Author: Seán de Búrca <leftmostcat gmail com>
Date:   Fri Sep 6 09:06:02 2013 -0600

    Properly initialize GtrContextPanel

 src/gtr-context.c |    5 ++---
 src/gtr-context.h |    2 +-
 src/gtr-tab.ui    |    3 ++-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gtr-context.c b/src/gtr-context.c
index db72799..95ac637 100644
--- a/src/gtr-context.c
+++ b/src/gtr-context.c
@@ -500,16 +500,15 @@ gtr_context_panel_class_init (GtrContextPanelClass * klass)
 
 /**
  * gtr_context_panel_new:
- * @tab: a #GtrTab
  * 
  * Creates a new #GtrContextPanel object.
  * 
  * Returns: a new #GtrContextPanel object
  */
 GtkWidget *
-gtr_context_panel_new (GtkWidget *tab)
+gtr_context_panel_new (void)
 {
-  return g_object_new (GTR_TYPE_CONTEXT_PANEL, "tab", tab, NULL);
+  return g_object_new (GTR_TYPE_CONTEXT_PANEL, NULL);
 }
 
 /**
diff --git a/src/gtr-context.h b/src/gtr-context.h
index f010442..c43bf76 100644
--- a/src/gtr-context.h
+++ b/src/gtr-context.h
@@ -68,7 +68,7 @@ struct _GtrContextPanelClass
  */
 GType             gtr_context_panel_get_type              (void) G_GNUC_CONST;
 
-GtkWidget        *gtr_context_panel_new                   (GtkWidget *tab);
+GtkWidget        *gtr_context_panel_new                   (void);
 
 GtkTextView      *gtr_context_panel_get_context_text_view (GtrContextPanel *panel);
 
diff --git a/src/gtr-tab.ui b/src/gtr-tab.ui
index 6c14da7..b92b246 100644
--- a/src/gtr-tab.ui
+++ b/src/gtr-tab.ui
@@ -133,9 +133,10 @@
           </packing>
         </child>
         <child>
-          <object class="GtkTextView" id="context">
+          <object class="GtrContextPanel" id="context">
             <property name="visible">True</property>
             <property name="can_focus">True</property>
+            <property name="tab">GtrTab</property>
           </object>
           <packing>
             <property name="expand">False</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]