[gtranslator] No longer use Gtk[HV]Box as it is deprecated
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] No longer use Gtk[HV]Box as it is deprecated
- Date: Sun, 12 Jun 2011 20:37:26 +0000 (UTC)
commit c87056f2ab4dde2b43ff59bb8ba0570bd51665ea
Author: Garrett Regier <alias301 gmail com>
Date: Sun Jun 12 13:17:52 2011 -0700
No longer use Gtk[HV]Box as it is deprecated
.../gtr-alternate-language-panel.c | 7 +++++--
.../gtr-alternate-language-panel.h | 4 ++--
plugins/dictionary/gtr-dict-panel.c | 9 ++++++---
plugins/dictionary/gtr-dict-panel.h | 4 ++--
plugins/dictionary/gtr-gdict-sidebar.c | 9 ++++++---
plugins/dictionary/gtr-gdict-sidebar.h | 4 ++--
plugins/glossary/glossary-panel.c | 5 ++++-
plugins/glossary/glossary-panel.h | 4 ++--
plugins/open-tran/gtr-open-tran-panel.c | 7 +++++--
plugins/open-tran/gtr-open-tran-panel.h | 4 ++--
src/dialogs/gtr-assistant.c | 18 +++++++++---------
src/dialogs/gtr-close-confirmation-dialog.c | 10 +++++-----
src/dialogs/gtr-languages-fetcher.c | 5 ++++-
src/dialogs/gtr-languages-fetcher.h | 4 ++--
src/gtr-context.c | 5 ++++-
src/gtr-context.h | 4 ++--
src/gtr-io-error-info-bar.c | 4 ++--
src/gtr-message-table.c | 5 ++++-
src/gtr-message-table.h | 4 ++--
src/gtr-statusbar.c | 5 ++++-
src/gtr-statusbar.h | 4 ++--
src/gtr-tab-label.c | 7 +++++--
src/gtr-tab-label.h | 4 ++--
src/gtr-tab.c | 13 ++++++++-----
src/gtr-tab.h | 4 ++--
src/gtr-window.c | 4 ++--
src/toolbareditor/egg-editable-toolbar.c | 5 ++++-
src/toolbareditor/egg-editable-toolbar.h | 4 ++--
src/toolbareditor/egg-toolbar-editor.c | 5 ++++-
src/toolbareditor/egg-toolbar-editor.h | 4 ++--
30 files changed, 107 insertions(+), 68 deletions(-)
---
diff --git a/plugins/alternate-language/gtr-alternate-language-panel.c b/plugins/alternate-language/gtr-alternate-language-panel.c
index a686d75..4a51854 100644
--- a/plugins/alternate-language/gtr-alternate-language-panel.c
+++ b/plugins/alternate-language/gtr-alternate-language-panel.c
@@ -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);
}
diff --git a/plugins/alternate-language/gtr-alternate-language-panel.h b/plugins/alternate-language/gtr-alternate-language-panel.h
index 964a782..ff2e3d7 100644
--- a/plugins/alternate-language/gtr-alternate-language-panel.h
+++ b/plugins/alternate-language/gtr-alternate-language-panel.h
@@ -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;
diff --git a/plugins/dictionary/gtr-dict-panel.c b/plugins/dictionary/gtr-dict-panel.c
index 4c008dd..c983eca 100644
--- a/plugins/dictionary/gtr-dict-panel.c
+++ b/plugins/dictionary/gtr-dict-panel.c
@@ -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 ());
diff --git a/plugins/dictionary/gtr-dict-panel.h b/plugins/dictionary/gtr-dict-panel.h
index c7a4b42..fbc1ac5 100644
--- a/plugins/dictionary/gtr-dict-panel.h
+++ b/plugins/dictionary/gtr-dict-panel.h
@@ -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;
};
/*
diff --git a/plugins/dictionary/gtr-gdict-sidebar.c b/plugins/dictionary/gtr-gdict-sidebar.c
index e32ae73..45ef56f 100644
--- a/plugins/dictionary/gtr-gdict-sidebar.c
+++ b/plugins/dictionary/gtr-gdict-sidebar.c
@@ -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);
diff --git a/plugins/dictionary/gtr-gdict-sidebar.h b/plugins/dictionary/gtr-gdict-sidebar.h
index 0662388..0406bbd 100644
--- a/plugins/dictionary/gtr-gdict-sidebar.h
+++ b/plugins/dictionary/gtr-gdict-sidebar.h
@@ -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);
diff --git a/plugins/glossary/glossary-panel.c b/plugins/glossary/glossary-panel.c
index 4fc103e..79c6516 100644
--- a/plugins/glossary/glossary-panel.c
+++ b/plugins/glossary/glossary-panel.c
@@ -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);
+
}
diff --git a/plugins/glossary/glossary-panel.h b/plugins/glossary/glossary-panel.h
index 3b94366..00157c6 100644
--- a/plugins/glossary/glossary-panel.h
+++ b/plugins/glossary/glossary-panel.h
@@ -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;
};
/*
diff --git a/plugins/open-tran/gtr-open-tran-panel.c b/plugins/open-tran/gtr-open-tran-panel.c
index 0cc9c06..46f0e60 100644
--- a/plugins/open-tran/gtr-open-tran-panel.c
+++ b/plugins/open-tran/gtr-open-tran-panel.c
@@ -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);
}
diff --git a/plugins/open-tran/gtr-open-tran-panel.h b/plugins/open-tran/gtr-open-tran-panel.h
index 4b0ecc4..0448bf8 100644
--- a/plugins/open-tran/gtr-open-tran-panel.h
+++ b/plugins/open-tran/gtr-open-tran-panel.h
@@ -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;
diff --git a/src/dialogs/gtr-assistant.c b/src/dialogs/gtr-assistant.c
index 93c91fa..e39a677 100644
--- a/src/dialogs/gtr-assistant.c
+++ b/src/dialogs/gtr-assistant.c
@@ -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);
diff --git a/src/dialogs/gtr-close-confirmation-dialog.c b/src/dialogs/gtr-close-confirmation-dialog.c
index 41c4acf..8fa29af 100644
--- a/src/dialogs/gtr-close-confirmation-dialog.c
+++ b/src/dialogs/gtr-close-confirmation-dialog.c
@@ -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)
diff --git a/src/dialogs/gtr-languages-fetcher.c b/src/dialogs/gtr-languages-fetcher.c
index 2084869..0a9cb8d 100644
--- a/src/dialogs/gtr-languages-fetcher.c
+++ b/src/dialogs/gtr-languages-fetcher.c
@@ -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,
diff --git a/src/dialogs/gtr-languages-fetcher.h b/src/dialogs/gtr-languages-fetcher.h
index 3730aff..88de267 100644
--- a/src/dialogs/gtr-languages-fetcher.h
+++ b/src/dialogs/gtr-languages-fetcher.h
@@ -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);
};
diff --git a/src/gtr-context.c b/src/gtr-context.c
index 2019633..ae07186 100644
--- a/src/gtr-context.c
+++ b/src/gtr-context.c
@@ -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),
diff --git a/src/gtr-context.h b/src/gtr-context.h
index 8aa37ff..f010442 100644
--- a/src/gtr-context.h
+++ b/src/gtr-context.h
@@ -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);
diff --git a/src/gtr-io-error-info-bar.c b/src/gtr-io-error-info-bar.c
index 9f756db..1c6efc7 100644
--- a/src/gtr-io-error-info-bar.c
+++ b/src/gtr-io-error-info-bar.c
@@ -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);
diff --git a/src/gtr-message-table.c b/src/gtr-message-table.c
index f97b6e1..31d3efa 100644
--- a/src/gtr-message-table.c
+++ b/src/gtr-message-table.c
@@ -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);
diff --git a/src/gtr-message-table.h b/src/gtr-message-table.h
index 34dcda7..ce50d9f 100644
--- a/src/gtr-message-table.h
+++ b/src/gtr-message-table.h
@@ -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;
};
/*
diff --git a/src/gtr-statusbar.c b/src/gtr-statusbar.c
index f84be41..8fe6dd6 100644
--- a/src/gtr-statusbar.c
+++ b/src/gtr-statusbar.c
@@ -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
*/
diff --git a/src/gtr-statusbar.h b/src/gtr-statusbar.h
index 26523ca..5d7ca2e 100644
--- a/src/gtr-statusbar.h
+++ b/src/gtr-statusbar.h
@@ -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
diff --git a/src/gtr-tab-label.c b/src/gtr-tab-label.c
index 346f420..b892fd2 100644
--- a/src/gtr-tab-label.c
+++ b/src/gtr-tab-label.c
@@ -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 ();
diff --git a/src/gtr-tab-label.h b/src/gtr-tab-label.h
index 7c76d79..5d5c75f 100644
--- a/src/gtr-tab-label.h
+++ b/src/gtr-tab-label.h
@@ -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);
};
diff --git a/src/gtr-tab.c b/src/gtr-tab.c
index f095c0a..dd02df9 100644
--- a/src/gtr-tab.c
+++ b/src/gtr-tab.c
@@ -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 */
diff --git a/src/gtr-tab.h b/src/gtr-tab.h
index 69eee54..a63f081 100644
--- a/src/gtr-tab.h
+++ b/src/gtr-tab.h
@@ -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);
diff --git a/src/gtr-window.c b/src/gtr-window.c
index 81e92a8..e7963a5 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -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);
diff --git a/src/toolbareditor/egg-editable-toolbar.c b/src/toolbareditor/egg-editable-toolbar.c
index 1a756fc..3e54c1b 100644
--- a/src/toolbareditor/egg-editable-toolbar.c
+++ b/src/toolbareditor/egg-editable-toolbar.c
@@ -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);
}
diff --git a/src/toolbareditor/egg-editable-toolbar.h b/src/toolbareditor/egg-editable-toolbar.h
index b08f68a..9f975b8 100644
--- a/src/toolbareditor/egg-editable-toolbar.h
+++ b/src/toolbareditor/egg-editable-toolbar.h
@@ -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);
diff --git a/src/toolbareditor/egg-toolbar-editor.c b/src/toolbareditor/egg-toolbar-editor.c
index bf76ca8..74ff7f0 100644
--- a/src/toolbareditor/egg-toolbar-editor.c
+++ b/src/toolbareditor/egg-toolbar-editor.c
@@ -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);
}
diff --git a/src/toolbareditor/egg-toolbar-editor.h b/src/toolbareditor/egg-toolbar-editor.h
index ba6e1a9..038e191 100644
--- a/src/toolbareditor/egg-toolbar-editor.h
+++ b/src/toolbareditor/egg-toolbar-editor.h
@@ -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;
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]