summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-04-06 02:54:33 -0700
committerStefano Karapetsas <[email protected]>2012-04-06 02:54:33 -0700
commitabcdc86ee6e83730a4744b47c4493952a09bd57f (patch)
tree90971e22d5db5bf00e5e73092f66de64823ac6ad
parent5dd56f746ff34aeb87451d19d88ed38a4501ec47 (diff)
parent1000c0b77ca712c2ceddbc7e2800291b3d166388 (diff)
downloadpluma-abcdc86ee6e83730a4744b47c4493952a09bd57f.tar.bz2
pluma-abcdc86ee6e83730a4744b47c4493952a09bd57f.tar.xz
Merge pull request #3 from benpicco/master
sync with upstream
-rw-r--r--pluma/pluma-notebook.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/pluma/pluma-notebook.c b/pluma/pluma-notebook.c
index 85515b3a..b6a935e4 100644
--- a/pluma/pluma-notebook.c
+++ b/pluma/pluma-notebook.c
@@ -815,13 +815,24 @@ create_tab_label (PlumaNotebook *nb,
return tab_label;
}
+static GtkWidget *
+get_tab_label (PlumaTab *tab)
+{
+ GtkWidget *tab_label;
+
+ tab_label = GTK_WIDGET (g_object_get_data (G_OBJECT (tab), "tab-label"));
+ g_return_val_if_fail (tab_label != NULL, NULL);
+
+ return tab_label;
+}
+
static void
remove_tab_label (PlumaNotebook *nb,
PlumaTab *tab)
{
GtkWidget *tab_label;
- tab_label = pluma_tab_label_new (tab);
+ tab_label = get_tab_label (tab);
g_signal_handlers_disconnect_by_func (tab_label,
G_CALLBACK (close_button_clicked_cb),
@@ -830,17 +841,6 @@ remove_tab_label (PlumaNotebook *nb,
g_object_set_data (G_OBJECT (tab), "tab-label", NULL);
}
-static GtkWidget *
-get_tab_label (PlumaTab *tab)
-{
- GtkWidget *tab_label;
-
- tab_label = GTK_WIDGET (g_object_get_data (G_OBJECT (tab), "tab-label"));
- g_return_val_if_fail (tab_label != NULL, NULL);
-
- return tab_label;
-}
-
/**
* pluma_notebook_set_always_show_tabs:
* @nb: a #PlumaNotebook