From: Ira W. Snyder Date: Wed, 19 Mar 2008 05:23:31 +0000 (-0700) Subject: [Window] Fix tab ordering X-Git-Url: https://irasnyder.com/gitweb/?a=commitdiff_plain;h=4756b2cd7f8bd09df94e52d8ba960bfea64db63f;p=tilda-gobject.git [Window] Fix tab ordering Previously, the tabs represeting TildaTerminals were prepended to the GtkNotebook, rather than appended. This made the first tab opened always be at the last tab's position, etc. This fixes the behavior and makes the tabs open from left to right, which is natural. --- diff --git a/tilda-window.c b/tilda-window.c index f4be2d8..d2ebc18 100644 --- a/tilda-window.c +++ b/tilda-window.c @@ -122,7 +122,7 @@ tilda_window_add_terminal (TildaWindow *self) g_ptr_array_add (self->terms, tt); label = gtk_label_new ("Tilda"); - notebook_index = gtk_notebook_prepend_page (GTK_NOTEBOOK(self->notebook), tt->hbox, label); + notebook_index = gtk_notebook_append_page (GTK_NOTEBOOK(self->notebook), tt->hbox, label); gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK(self->notebook), tt->hbox, self->full_width_tabs, TRUE, GTK_PACK_START); gtk_notebook_set_current_page (GTK_NOTEBOOK(self->notebook), notebook_index);