[tepl] Tab: rename new() to new_with_view()



commit f8a037d4bcd4d715ec18acdcfd9451645691e600
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Jun 23 13:16:54 2017 +0200

    Tab: rename new() to new_with_view()

 docs/reference/tepl-3.0-sections.txt |    2 +-
 tepl/tepl-tab.c                      |    4 ++--
 tepl/tepl-tab.h                      |    2 +-
 tests/test-tab.c                     |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/docs/reference/tepl-3.0-sections.txt b/docs/reference/tepl-3.0-sections.txt
index b6332c2..cd3136a 100644
--- a/docs/reference/tepl-3.0-sections.txt
+++ b/docs/reference/tepl-3.0-sections.txt
@@ -345,7 +345,7 @@ tepl_metadata_manager_shutdown
 <FILE>tab</FILE>
 TeplTab
 TeplTabClass
-tepl_tab_new
+tepl_tab_new_with_view
 tepl_tab_get_view
 tepl_tab_get_buffer
 tepl_tab_add_info_bar
diff --git a/tepl/tepl-tab.c b/tepl/tepl-tab.c
index e933bb3..caa6c73 100644
--- a/tepl/tepl-tab.c
+++ b/tepl/tepl-tab.c
@@ -238,14 +238,14 @@ tepl_tab_init (TeplTab *tab)
 }
 
 /**
- * tepl_tab_new:
+ * tepl_tab_new_with_view:
  * @view: the #TeplView that will be contained in the tab.
  *
  * Returns: a new #TeplTab.
  * Since: 3.0
  */
 TeplTab *
-tepl_tab_new (TeplView *view)
+tepl_tab_new_with_view (TeplView *view)
 {
        g_return_val_if_fail (TEPL_IS_VIEW (view), NULL);
 
diff --git a/tepl/tepl-tab.h b/tepl/tepl-tab.h
index 029ea1f..153e382 100644
--- a/tepl/tepl-tab.h
+++ b/tepl/tepl-tab.h
@@ -76,7 +76,7 @@ struct _TeplTabClass
 
 GType          tepl_tab_get_type               (void);
 
-TeplTab *      tepl_tab_new                    (TeplView *view);
+TeplTab *      tepl_tab_new_with_view          (TeplView *view);
 
 TeplView *     tepl_tab_get_view               (TeplTab *tab);
 
diff --git a/tests/test-tab.c b/tests/test-tab.c
index 10cb790..31fd595 100644
--- a/tests/test-tab.c
+++ b/tests/test-tab.c
@@ -207,7 +207,7 @@ create_window_content (void)
                      "margin", 6,
                      NULL);
 
-       tab = tepl_tab_new (TEPL_VIEW (tepl_view_new ()));
+       tab = tepl_tab_new_with_view (TEPL_VIEW (tepl_view_new ()));
        side_panel = create_side_panel (tab);
 
        gtk_container_add (GTK_CONTAINER (hgrid), side_panel);


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