Commit c87056f2 authored by Garrett Regier's avatar Garrett Regier Committed by Ignacio Casal Quinteiro

No longer use Gtk[HV]Box as it is deprecated

parent 9574b7df
......@@ -42,7 +42,7 @@
GTR_TYPE_ALTERNATE_LANG_PANEL, \
GtrAlternateLangPanelPrivate))
G_DEFINE_DYNAMIC_TYPE (GtrAlternateLangPanel, gtr_alternate_lang_panel, GTK_TYPE_VBOX)
G_DEFINE_DYNAMIC_TYPE (GtrAlternateLangPanel, gtr_alternate_lang_panel, GTK_TYPE_BOX)
struct _GtrAlternateLangPanelPrivate
{
......@@ -302,7 +302,7 @@ gtr_alternate_lang_panel_draw (GtrAlternateLangPanel * panel)
GtkWidget *scroll;
/* Hbox */
hbox = gtk_hbox_new (FALSE, 6);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (panel), hbox, FALSE, TRUE, 0);
......@@ -375,6 +375,9 @@ gtr_alternate_lang_panel_init (GtrAlternateLangPanel * panel)
panel->priv->showed_message_id = 0;
panel->priv->po = NULL;
gtk_orientable_set_orientation (GTK_ORIENTABLE (panel),
GTK_ORIENTATION_VERTICAL);
gtr_alternate_lang_panel_draw (panel);
}
......
......@@ -38,7 +38,7 @@ typedef struct _GtrAlternateLangPanelClass GtrAlternateLangPanelClass;
struct _GtrAlternateLangPanel
{
GtkVBox parent_instance;
GtkBox parent_instance;
/*< private > */
GtrAlternateLangPanelPrivate *priv;
......@@ -46,7 +46,7 @@ struct _GtrAlternateLangPanel
struct _GtrAlternateLangPanelClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
};
GType gtr_alternate_lang_panel_get_type (void) G_GNUC_CONST;
......
......@@ -50,7 +50,7 @@
#define GDICT_SIDEBAR_STRATEGIES_PAGE "strat-chooser"
#define GDICT_SIDEBAR_SOURCES_PAGE "source-chooser"
G_DEFINE_DYNAMIC_TYPE (GtrDictPanel, gtr_dict_panel, GTK_TYPE_VBOX)
G_DEFINE_DYNAMIC_TYPE (GtrDictPanel, gtr_dict_panel, GTK_TYPE_BOX)
struct _GtrDictPanelPrivate
{
......@@ -428,11 +428,11 @@ gtr_dict_panel_draw (GtrDictPanel * panel)
GtkWidget *vbox;
GtkWidget *hbox;
vbox = gtk_vbox_new (FALSE, 6);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
gtk_widget_show (vbox);
hbox = gtk_hbox_new (FALSE, 12);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
......@@ -585,6 +585,9 @@ gtr_dict_panel_init (GtrDictPanel * panel)
if (!priv->loader)
panel->priv->loader = gdict_source_loader_new ();
gtk_orientable_set_orientation (GTK_ORIENTABLE (panel),
GTK_ORIENTATION_VERTICAL);
/* add our data dir inside $HOME to the loader's search paths */
gdict_source_loader_add_search_path (priv->loader,
gtr_dirs_get_user_config_dir ());
......
......@@ -41,7 +41,7 @@ typedef struct _GtrDictPanelPrivate GtrDictPanelPrivate;
struct _GtrDictPanel
{
GtkVBox parent_instance;
GtkBox parent_instance;
/*< private > */
GtrDictPanelPrivate *priv;
......@@ -49,7 +49,7 @@ struct _GtrDictPanel
struct _GtrDictPanelClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
};
/*
......
......@@ -72,7 +72,7 @@ static guint sidebar_signals[LAST_SIGNAL] = { 0 };
static GQuark sidebar_page_id_quark = 0;
G_DEFINE_TYPE (GdictSidebar, gdict_sidebar, GTK_TYPE_VBOX);
G_DEFINE_TYPE (GdictSidebar, gdict_sidebar, GTK_TYPE_BOX);
static SidebarPage *
sidebar_page_new (const gchar * id, const gchar * name, GtkWidget * widget)
......@@ -298,8 +298,11 @@ gdict_sidebar_init (GdictSidebar * sidebar)
priv->pages = NULL;
priv->pages_by_id = g_hash_table_new (g_str_hash, g_str_equal);
gtk_orientable_set_orientation (GTK_ORIENTABLE (sidebar),
GTK_ORIENTATION_VERTICAL);
/* top option menu */
hbox = gtk_hbox_new (FALSE, 0);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (sidebar), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
priv->hbox = hbox;
......@@ -313,7 +316,7 @@ gdict_sidebar_init (GdictSidebar * sidebar)
G_CALLBACK (gdict_sidebar_select_key_press_cb), sidebar);
priv->select_button = select_button;
select_hbox = gtk_hbox_new (FALSE, 0);
select_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
priv->label = gtk_label_new (NULL);
gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
......
......@@ -39,14 +39,14 @@ typedef struct _GdictSidebarClass GdictSidebarClass;
struct _GdictSidebar
{
GtkVBox parent_instance;
GtkBox parent_instance;
GdictSidebarPrivate *priv;
};
struct _GdictSidebarClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
void (*page_changed) (GdictSidebar * sidebar);
void (*closed) (GdictSidebar * sidebar);
......
......@@ -37,7 +37,7 @@
GTR_TYPE_GLOSSARY_PANEL, \
GtrGlossaryPanelPrivate))
G_DEFINE_TYPE (GtrGlossaryPanel, gtr_glossary_panel, GTK_TYPE_VBOX)
G_DEFINE_TYPE (GtrGlossaryPanel, gtr_glossary_panel, GTK_TYPE_BOX)
#define XML_FILE_NAME "glossary.xml"
/*
* TreeItem structure
......@@ -144,6 +144,9 @@ gtr_glossary_panel_init (GtrGlossaryPanel * panel)
{
panel->priv = GTR_GLOSSARY_PANEL_GET_PRIVATE (panel);
gtk_orientable_set_orientation (GTK_ORIENTABLE (panel),
GTK_ORIENTATION_VERTICAL);
}
......
......@@ -48,7 +48,7 @@ typedef struct _GtrGlossaryPanel GtrGlossaryPanel;
struct _GtrGlossaryPanel
{
GtkVBox parent_instance;
GtkBox parent_instance;
/*< private > */
GtrGlossaryPanelPrivate *priv;
......@@ -61,7 +61,7 @@ typedef struct _GtrGlossaryPanelClass GtrGlossaryPanelClass;
struct _GtrGlossaryPanelClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
};
/*
......
......@@ -57,7 +57,7 @@
#define FEDORA_ICON "fedora.png"
#define MANDRIVA_ICON "mandriva.png"
G_DEFINE_DYNAMIC_TYPE (GtrOpenTranPanel, gtr_open_tran_panel, GTK_TYPE_VBOX)
G_DEFINE_DYNAMIC_TYPE (GtrOpenTranPanel, gtr_open_tran_panel, GTK_TYPE_BOX)
struct _GtrOpenTranPanelPrivate
{
......@@ -500,7 +500,7 @@ gtr_open_tran_panel_draw (GtrOpenTranPanel * panel)
/*
* Entry
*/
hbox = gtk_hbox_new (FALSE, 6);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
button = gtk_button_new_with_label (_("Look for:"));
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_HALF);
......@@ -524,6 +524,9 @@ gtr_open_tran_panel_init (GtrOpenTranPanel * panel)
panel->priv->settings = g_settings_new ("org.gnome.gtranslator.plugins.open-tran");
gtk_orientable_set_orientation (GTK_ORIENTABLE (panel),
GTK_ORIENTATION_VERTICAL);
gtr_open_tran_panel_draw (panel);
}
......
......@@ -46,7 +46,7 @@ typedef struct _GtrOpenTranPanelClass GtrOpenTranPanelClass;
struct _GtrOpenTranPanel
{
GtkVBox parent_instance;
GtkBox parent_instance;
/*< private > */
GtrOpenTranPanelPrivate *priv;
......@@ -54,7 +54,7 @@ struct _GtrOpenTranPanel
struct _GtrOpenTranPanelClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
};
GType gtr_open_tran_panel_get_type (void) G_GNUC_CONST;
......
......@@ -302,7 +302,7 @@ create_start_page (GtrAssistant * as)
{
GtkWidget *box, *label;
box = gtk_hbox_new (FALSE, 12);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_show (box);
gtk_container_set_border_width (GTK_CONTAINER (box), 12);
......@@ -374,14 +374,14 @@ create_profiles_page1 (GtrAssistant * as)
GtkWidget *label;
GtrAssistantPrivate *priv = as->priv;
box = gtk_vbox_new (FALSE, 6);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (box);
gtk_container_set_border_width (GTK_CONTAINER (box), 5);
/*
* Profile name:
*/
hbox = gtk_hbox_new (FALSE, 12);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (box), hbox, FALSE, FALSE, 0);
......@@ -400,7 +400,7 @@ create_profiles_page1 (GtrAssistant * as)
/*
* Translator name:
*/
hbox = gtk_hbox_new (FALSE, 12);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (box), hbox, FALSE, FALSE, 0);
......@@ -419,7 +419,7 @@ create_profiles_page1 (GtrAssistant * as)
/*
* Translator email:
*/
hbox = gtk_hbox_new (FALSE, 12);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (box), hbox, FALSE, FALSE, 0);
......@@ -568,7 +568,7 @@ create_database_page (GtrAssistant * as)
GtkWidget *label;
GtrAssistantPrivate *priv = as->priv;
box = gtk_vbox_new (FALSE, 6);
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (box);
gtk_container_set_border_width (GTK_CONTAINER (box), 5);
......@@ -581,7 +581,7 @@ create_database_page (GtrAssistant * as)
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
/* hbox */
hbox = gtk_hbox_new (FALSE, 12);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (box), hbox, FALSE, FALSE, 0);
......@@ -598,7 +598,7 @@ create_database_page (GtrAssistant * as)
G_CALLBACK (on_dir_find_button_clicked), as);
/* Po name label */
hbox = gtk_hbox_new (FALSE, 12);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (box), hbox, FALSE, FALSE, 0);
......@@ -624,7 +624,7 @@ create_database_page (GtrAssistant * as)
static void
create_finish_page (GtrAssistant * as)
{
as->priv->finish_box = gtk_vbox_new (FALSE, 0);
as->priv->finish_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (as->priv->finish_box);
as->priv->confirm_label = gtk_label_new (NULL);
......
......@@ -380,12 +380,12 @@ build_single_doc_dialog (GtrCloseConfirmationDialog * dlg)
gtk_label_set_markup (GTK_LABEL (primary_label), markup_str);
g_free (markup_str);
hbox = gtk_hbox_new (FALSE, 12);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
vbox = gtk_vbox_new (FALSE, 12);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0);
......@@ -508,7 +508,7 @@ build_multiple_docs_dialog (GtrCloseConfirmationDialog * dlg)
priv = dlg->priv;
hbox = gtk_hbox_new (FALSE, 12);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 5);
gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dlg))), hbox, TRUE, TRUE, 0);
......@@ -518,7 +518,7 @@ build_multiple_docs_dialog (GtrCloseConfirmationDialog * dlg)
gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0);
gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0);
vbox = gtk_vbox_new (FALSE, 12);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_box_pack_start (GTK_BOX (hbox), vbox, TRUE, TRUE, 0);
/* Primary label */
......@@ -554,7 +554,7 @@ build_multiple_docs_dialog (GtrCloseConfirmationDialog * dlg)
g_free (markup_str);
gtk_box_pack_start (GTK_BOX (vbox), primary_label, FALSE, FALSE, 0);
vbox2 = gtk_vbox_new (FALSE, 8);
vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
gtk_box_pack_start (GTK_BOX (vbox), vbox2, FALSE, FALSE, 0);
if (priv->disable_save_to_disk)
......
......@@ -46,7 +46,7 @@ enum
LAST_SIGNAL
};
G_DEFINE_TYPE (GtrLanguagesFetcher, gtr_languages_fetcher, GTK_TYPE_VBOX)
G_DEFINE_TYPE (GtrLanguagesFetcher, gtr_languages_fetcher, GTK_TYPE_BOX)
static guint signals[LAST_SIGNAL] = { 0 };
......@@ -306,6 +306,9 @@ gtr_languages_fetcher_init (GtrLanguagesFetcher *fetcher)
fetcher->priv = GTR_LANGUAGES_FETCHER_GET_PRIVATE (fetcher);
gtk_orientable_set_orientation (GTK_ORIENTABLE (fetcher),
GTK_ORIENTATION_VERTICAL);
path = gtr_dirs_get_ui_file ("gtr-languages-fetcher.ui");
ret = gtr_utils_get_ui_objects (path,
root_objects,
......
......@@ -39,14 +39,14 @@ typedef struct _GtrLanguagesFetcherPrivate GtrLanguagesFetcherPrivate;
struct _GtrLanguagesFetcher
{
GtkVBox parent;
GtkBox parent;
GtrLanguagesFetcherPrivate *priv;
};
struct _GtrLanguagesFetcherClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
void (* changed) (GtrLanguagesFetcher *fetcher);
};
......
......@@ -33,7 +33,7 @@
GTR_TYPE_CONTEXT_PANEL, \
GtrContextPanelPrivate))
G_DEFINE_TYPE (GtrContextPanel, gtr_context_panel, GTK_TYPE_VBOX)
G_DEFINE_TYPE (GtrContextPanel, gtr_context_panel, GTK_TYPE_BOX)
struct _GtrContextPanelPrivate
{
......@@ -344,6 +344,9 @@ gtr_context_panel_init (GtrContextPanel *panel)
priv->hand_cursor = gdk_cursor_new (GDK_HAND2);
priv->regular_cursor = gdk_cursor_new (GDK_XTERM);
gtk_orientable_set_orientation (GTK_ORIENTABLE (panel),
GTK_ORIENTATION_VERTICAL);
/* Set up the scrolling window for the extracted context display */
priv->sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->sw),
......
......@@ -44,7 +44,7 @@ typedef struct _GtrContextPanel GtrContextPanel;
struct _GtrContextPanel
{
GtkVBox parent_instance;
GtkBox parent_instance;
/*< private > */
GtrContextPanelPrivate *priv;
......@@ -57,7 +57,7 @@ typedef struct _GtrContextPanelClass GtrContextPanelClass;
struct _GtrContextPanelClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
void (* reloaded) (GtrContextPanel *panel,
GtrMsg *msg);
......
......@@ -48,7 +48,7 @@ set_info_bar_text_and_icon (GtkInfoBar * infobar,
GtkWidget *primary_label;
GtkWidget *secondary_label;
hbox_content = gtk_hbox_new (FALSE, 8);
hbox_content = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 8);
gtk_widget_show (hbox_content);
image = gtk_image_new_from_stock (icon_stock_id, GTK_ICON_SIZE_DIALOG);
......@@ -56,7 +56,7 @@ set_info_bar_text_and_icon (GtkInfoBar * infobar,
gtk_box_pack_start (GTK_BOX (hbox_content), image, FALSE, FALSE, 0);
gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0);
vbox = gtk_vbox_new (FALSE, 6);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
gtk_box_pack_start (GTK_BOX (hbox_content), vbox, TRUE, TRUE, 0);
......
......@@ -42,7 +42,7 @@
GTR_TYPE_MESSAGE_TABLE, \
GtrMessageTablePrivate))
G_DEFINE_TYPE (GtrMessageTable, gtr_message_table, GTK_TYPE_VBOX)
G_DEFINE_TYPE (GtrMessageTable, gtr_message_table, GTK_TYPE_BOX)
struct _GtrMessageTablePrivate
{
......@@ -348,6 +348,9 @@ gtr_message_table_init (GtrMessageTable * table)
table->priv = GTR_MESSAGE_TABLE_GET_PRIVATE (table);
gtk_orientable_set_orientation (GTK_ORIENTABLE (table),
GTK_ORIENTATION_VERTICAL);
gtr_message_table_draw (table);
scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
......
......@@ -44,7 +44,7 @@ typedef struct _GtrMessageTable GtrMessageTable;
struct _GtrMessageTable
{
GtkVBox parent_instance;
GtkBox parent_instance;
/* < private > */
GtrMessageTablePrivate *priv;
......@@ -57,7 +57,7 @@ typedef struct _GtrMessageTableClass GtrMessageTableClass;
struct _GtrMessageTableClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
};
/*
......
......@@ -48,7 +48,7 @@ struct _GtrStatusbarPrivate
guint flash_message_id;
};
G_DEFINE_TYPE (GtrStatusbar, gtr_statusbar, GTK_TYPE_HBOX)
G_DEFINE_TYPE (GtrStatusbar, gtr_statusbar, GTK_TYPE_BOX)
static void gtr_statusbar_finalize (GObject * object)
{
GtrStatusbar *statusbar = GTR_STATUSBAR (object);
......@@ -77,6 +77,9 @@ gtr_statusbar_init (GtrStatusbar * statusbar)
statusbar->priv = GTR_STATUSBAR_GET_PRIVATE (statusbar);
gtk_orientable_set_orientation (GTK_ORIENTABLE (statusbar),
GTK_ORIENTATION_HORIZONTAL);
/*
* Statusbar
*/
......
......@@ -36,7 +36,7 @@ typedef struct _GtrStatusbarClass GtrStatusbarClass;
struct _GtrStatusbar
{
GtkHBox parent;
GtkBox parent;
/* <private/> */
GtrStatusbarPrivate *priv;
......@@ -44,7 +44,7 @@ struct _GtrStatusbar
struct _GtrStatusbarClass
{
GtkHBoxClass parent_class;
GtkBoxClass parent_class;
};
GType
......
......@@ -58,7 +58,7 @@ struct _GtrTabLabelPrivate
static guint signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GtrTabLabel, gtr_tab_label, GTK_TYPE_HBOX)
G_DEFINE_TYPE (GtrTabLabel, gtr_tab_label, GTK_TYPE_BOX)
static void
gtr_tab_label_finalize (GObject *object)
......@@ -263,12 +263,15 @@ gtr_tab_label_init (GtrTabLabel *tab_label)
tab_label->priv->close_button_sensitive = TRUE;
gtk_orientable_set_orientation (GTK_ORIENTABLE (tab_label),
GTK_ORIENTATION_HORIZONTAL);
ebox = gtk_event_box_new ();
gtk_event_box_set_visible_window (GTK_EVENT_BOX (ebox), FALSE);
gtk_box_pack_start (GTK_BOX (tab_label), ebox, TRUE, TRUE, 0);
tab_label->priv->ebox = ebox;
hbox = gtk_hbox_new (FALSE, 4);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
gtk_container_add (GTK_CONTAINER (ebox), hbox);
close_button = gtr_close_button_new ();
......
......@@ -41,13 +41,13 @@ typedef struct _GtrTabLabelClass GtrTabLabelClass;
typedef struct _GtrTabLabelPrivate GtrTabLabelPrivate;
struct _GtrTabLabel {
GtkHBox parent;
GtkBox parent;
GtrTabLabelPrivate *priv;
};
struct _GtrTabLabelClass {
GtkHBoxClass parent_class;
GtkBoxClass parent_class;
void (* close_clicked) (GtrTabLabel *tab_label);
};
......
......@@ -69,7 +69,7 @@
#define GTR_TAB_KEY "GtrTabFromDocument"
G_DEFINE_TYPE (GtrTab, gtr_tab, GTK_TYPE_VBOX)
G_DEFINE_TYPE (GtrTab, gtr_tab, GTK_TYPE_BOX)
struct _GtrTabPrivate
{
......@@ -697,7 +697,7 @@ gtr_tab_draw (GtrTab *tab)
GtrTabPrivate *priv = tab->priv;
/* Docker */
hbox = gtk_hbox_new (FALSE, 0);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (tab), hbox, TRUE, TRUE, 0);
......@@ -733,7 +733,7 @@ gtr_tab_draw (GtrTab *tab)
FALSE);
/* Orignal text widgets */
priv->msgid_hbox = gtk_hbox_new (FALSE, 0);
priv->msgid_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_show (priv->msgid_hbox);
msgid_label = gtk_label_new (NULL);
......@@ -744,7 +744,7 @@ gtr_tab_draw (GtrTab *tab)
gtk_box_pack_start (GTK_BOX (priv->msgid_hbox), msgid_label, FALSE, FALSE,
0);
priv->text_vbox = gtk_vbox_new (FALSE, 0);
priv->text_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (priv->text_vbox);
/* Singular */
......@@ -785,7 +785,7 @@ gtr_tab_draw (GtrTab *tab)
gtk_box_pack_start (GTK_BOX (priv->text_vbox), priv->text_plural_scroll,
TRUE, TRUE, 0);
vertical_box = gtk_vbox_new (FALSE, 0);
vertical_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (vertical_box);
gtk_box_pack_start (GTK_BOX (vertical_box), priv->msgid_hbox, FALSE, FALSE,
......@@ -867,6 +867,9 @@ gtr_tab_init (GtrTab * tab)
g_signal_connect (tab, "message-changed", G_CALLBACK (update_status), NULL);
gtk_orientable_set_orientation (GTK_ORIENTABLE (tab),
GTK_ORIENTATION_VERTICAL);
gtr_tab_draw (tab);
/* Manage auto save data */
......
......@@ -52,7 +52,7 @@ typedef struct _GtrTab GtrTab;
struct _GtrTab
{
GtkVBox parent_instance;
GtkBox parent_instance;
/*< private > */
GtrTabPrivate *priv;
......@@ -65,7 +65,7 @@ typedef struct _GtrTabClass GtrTabClass;
struct _GtrTabClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
void (*showed_message) (GtrTab * tab, GtrMsg * msg);
void (*message_changed) (GtrTab * tab, GtrMsg * msg);
......
......@@ -1207,7 +1207,7 @@ create_statusbar (GtrWindow *window)
GtkWidget *hbox;
/* hbox */
hbox = gtk_hbox_new (FALSE, 0);
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (window->priv->main_box), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
......@@ -1363,7 +1363,7 @@ gtr_window_draw (GtrWindow * window)
GtrWindowPrivate *priv = window->priv;
/* Main box */
priv->main_box = gtk_vbox_new (FALSE, 0);
priv->main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (window), priv->main_box);
gtk_widget_show (priv->main_box);
......
......@@ -84,7 +84,7 @@ struct _EggEditableToolbarPrivate
gchar *primary_name;
};
G_DEFINE_TYPE (EggEditableToolbar, egg_editable_toolbar, GTK_TYPE_VBOX);
G_DEFINE_TYPE (EggEditableToolbar, egg_editable_toolbar, GTK_TYPE_BOX);
static int
get_dock_position (EggEditableToolbar *etoolbar,
......@@ -1386,6 +1386,9 @@ egg_editable_toolbar_init (EggEditableToolbar *etoolbar)
priv->save_hidden = TRUE;
gtk_orientable_set_orientation (GTK_ORIENTABLE (etoolbar),
GTK_ORIENTATION_VERTICAL);
g_signal_connect (etoolbar, "notify::visible",
G_CALLBACK (toolbar_visibility_refresh), NULL);
}
......
......@@ -41,7 +41,7 @@ typedef struct _EggEditableToolbarClass EggEditableToolbarClass;
struct _EggEditableToolbar
{
GtkVBox parent_object;
GtkBox parent_object;
/*< private >*/
EggEditableToolbarPrivate *priv;
......@@ -49,7 +49,7 @@ struct _EggEditableToolbar
struct _EggEditableToolbarClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
void (* action_request) (EggEditableToolbar *etoolbar,
const char *action_name);
......
......@@ -71,7 +71,7 @@ struct EggToolbarEditorPrivate
gulong sig_handlers[SIGNAL_HANDLER_LIST_SIZE];
};
G_DEFINE_TYPE (EggToolbarEditor, egg_toolbar_editor, GTK_TYPE_VBOX);
G_DEFINE_TYPE (EggToolbarEditor, egg_toolbar_editor, GTK_TYPE_BOX);
static gint
compare_items (gconstpointer a,
......@@ -670,6 +670,9 @@ egg_toolbar_editor_init (EggToolbarEditor *t)
t->priv->manager = NULL;
t->priv->actions_list = NULL;
gtk_orientable_set_orientation (GTK_ORIENTABLE (t),
GTK_ORIENTATION_VERTICAL);
setup_editor (t);
}
......@@ -40,7 +40,7 @@ typedef struct EggToolbarEditorPrivate EggToolbarEditorPrivate;
struct EggToolbarEditor
{
GtkVBox parent_object;
GtkBox parent_object;
/*< private >*/
EggToolbarEditorPrivate *priv;
......@@ -48,7 +48,7 @@ struct EggToolbarEditor
struct EggToolbarEditorClass
{
GtkVBoxClass parent_class;
GtkBoxClass parent_class;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment