[tepl] AbstractFactory: move create_main_window on top in the Class struct



commit b2bcee04ec7e98b017198c867eb12c2ccd39e7e2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 3 12:02:46 2017 +0100

    AbstractFactory: move create_main_window on top in the Class struct
    
    It is now possible thanks to the API/major version bump.
    
    And add more padding.

 tepl/tepl-abstract-factory.h |   18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/tepl/tepl-abstract-factory.h b/tepl/tepl-abstract-factory.h
index 58711d8..e193d98 100644
--- a/tepl/tepl-abstract-factory.h
+++ b/tepl/tepl-abstract-factory.h
@@ -46,6 +46,9 @@ struct _TeplAbstractFactory
 /**
  * TeplAbstractFactoryClass:
  * @parent_class: The parent class.
+ * @create_main_window: Virtual function pointer for
+ *   tepl_abstract_factory_create_main_window(). It is not implemented by
+ *   default.
  * @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
@@ -54,18 +57,14 @@ struct _TeplAbstractFactory
  * @create_file: Virtual function pointer for
  *   tepl_abstract_factory_create_file(). By default the #TeplFile is created
  *   with tepl_file_new().
- * @create_main_window: Virtual function pointer for
- *   tepl_abstract_factory_create_main_window(). It is not implemented by
- *   default.
- */
-/* TODO move create_main_window on top, to have a more logical order, for next
- * API break. Keyword: "deprecated" (to find this TODO when it needs to be
- * done).
  */
 struct _TeplAbstractFactoryClass
 {
        GObjectClass parent_class;
 
+       GtkApplicationWindow *  (* create_main_window)  (TeplAbstractFactory *factory,
+                                                        GtkApplication      *app);
+
        TeplTab *               (* create_tab)          (TeplAbstractFactory *factory);
 
        GtkWidget *             (* create_tab_label)    (TeplAbstractFactory *factory,
@@ -73,11 +72,8 @@ struct _TeplAbstractFactoryClass
 
        TeplFile *              (* create_file)         (TeplAbstractFactory *factory);
 
-       GtkApplicationWindow *  (* create_main_window)  (TeplAbstractFactory *factory,
-                                                        GtkApplication      *app);
-
        /*< private >*/
-       gpointer padding[10];
+       gpointer padding[12];
 };
 
 GType                  tepl_abstract_factory_get_type                  (void);


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