[tepl] AbstractFactory: create a TeplTabLabel



commit 260c3d783830433c7ea93952a8aeddcef64e9b09
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Aug 5 14:26:45 2017 +0200

    AbstractFactory: create a TeplTabLabel

 tepl/tepl-abstract-factory.c |    4 ++--
 tepl/tepl-abstract-factory.h |    3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/tepl/tepl-abstract-factory.c b/tepl/tepl-abstract-factory.c
index 6e19fc1..1ecdce6 100644
--- a/tepl/tepl-abstract-factory.c
+++ b/tepl/tepl-abstract-factory.c
@@ -19,6 +19,7 @@
 
 #include "tepl-abstract-factory.h"
 #include "tepl-tab.h"
+#include "tepl-tab-label.h"
 
 /**
  * SECTION:abstract-factory
@@ -71,8 +72,7 @@ static GtkWidget *
 tepl_abstract_factory_create_tab_label_default (TeplAbstractFactory *factory,
                                                TeplTab             *tab)
 {
-       /* TODO implement a default TeplTabLabel widget. */
-       return NULL;
+       return tepl_tab_label_new (tab);
 }
 
 static void
diff --git a/tepl/tepl-abstract-factory.h b/tepl/tepl-abstract-factory.h
index 697d820..efc65cf 100644
--- a/tepl/tepl-abstract-factory.h
+++ b/tepl/tepl-abstract-factory.h
@@ -49,7 +49,8 @@ struct _TeplAbstractFactory
  * @create_tab: Virtual function pointer for tepl_abstract_factory_create_tab().
  *   By default the #TeplTab is created with tepl_tab_new().
  * @create_tab_label: Virtual function pointer for
- *   tepl_abstract_factory_create_tab_label(). By default %NULL is returned.
+ *   tepl_abstract_factory_create_tab_label(). By default the tab label is
+ *   created with tepl_tab_label_new().
  */
 struct _TeplAbstractFactoryClass
 {


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