diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-08-27 06:38:50 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-08-27 06:38:50 (GMT) |
commit | 35024acba0f134cfe09711e3f1a6f29a01257aeb (patch) | |
tree | bbdcf3903bb60df15d26b57e26018754d6a525eb | |
parent | 10b620c3f7d6a9e78aa1e9d6dabef466d0b9e3af (diff) |
Removed some warnings about deprecated calls to gtk_[hv]box_new().
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@395 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | src/dialogs/export.c | 10 | ||||
-rw-r--r-- | src/dialogs/goto.c | 4 | ||||
-rw-r--r-- | src/dialogs/plugins.c | 14 | ||||
-rw-r--r-- | src/dialogs/shellcode.c | 16 | ||||
-rw-r--r-- | src/editor.c | 2 | ||||
-rw-r--r-- | src/gui/panels/strings.c | 2 | ||||
-rw-r--r-- | src/gui/panels/symbols.c | 4 | ||||
-rw-r--r-- | src/gui/tb/source.c | 2 | ||||
-rw-r--r-- | src/panels/breaks.c | 2 | ||||
-rw-r--r-- | src/panels/registers.c | 2 |
11 files changed, 44 insertions, 29 deletions
@@ -1,5 +1,20 @@ 14-08-27 Cyrille Bagard <nocbos@gmail.com> + * src/dialogs/export.c: + * src/dialogs/goto.c: + * src/dialogs/plugins.c: + * src/dialogs/shellcode.c: + * src/editor.c: + * src/gui/panels/strings.c: + * src/gui/panels/symbols.c: + * src/gui/tb/source.c: + * src/panels/breaks.c: + * src/panels/registers.c: + Remove some warnings about deprecated calls to gtk_[hv]box_new() by using + gtk_box_new() instead. + +14-08-27 Cyrille Bagard <nocbos@gmail.com> + * src/arch/vmpa.c: * src/arch/vmpa.h: Compare vmpa_t types (by physical offset first). Convert strings to vmpa_t. diff --git a/src/dialogs/export.c b/src/dialogs/export.c index 2f572a5..67a3b7c 100644 --- a/src/dialogs/export.c +++ b/src/dialogs/export.c @@ -282,13 +282,13 @@ static void register_output_panel(GtkAssistant *assistant) alignment = qck_create_padded_alignment(8, 8, 8, 8); - vbox = gtk_vbox_new(TRUE, 0); + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox); gtk_container_add(GTK_CONTAINER(alignment), vbox); /* Format de sortie */ - hbox = gtk_hbox_new(FALSE, 0); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); @@ -304,7 +304,7 @@ static void register_output_panel(GtkAssistant *assistant) /* Fichier de sortie */ - hbox = gtk_hbox_new(FALSE, 0); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); @@ -439,7 +439,7 @@ static void register_content_panel(GtkAssistant *assistant) alignment = qck_create_padded_alignment(8, 8, 8, 8); - vbox = gtk_vbox_new(TRUE, 0); + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox); gtk_container_add(GTK_CONTAINER(alignment), vbox); @@ -448,7 +448,7 @@ static void register_content_panel(GtkAssistant *assistant) frame = qck_create_frame(_("<b>Items to display</b>"), &subalign, 0, 0, 12, 0); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); - sub_vbox = gtk_vbox_new(FALSE, 0); + sub_vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(sub_vbox); gtk_container_add(GTK_CONTAINER(subalign), sub_vbox); diff --git a/src/dialogs/goto.c b/src/dialogs/goto.c index 5322260..1844712 100644 --- a/src/dialogs/goto.c +++ b/src/dialogs/goto.c @@ -162,7 +162,7 @@ GtkWidget *create_goto_dialog(GtkWindow *parent) dlgvbox = gtk_dialog_get_content_area(GTK_DIALOG(result)); gtk_widget_show(dlgvbox); - vbox = gtk_vbox_new(FALSE, 8); + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox); gtk_box_pack_start(GTK_BOX(dlgvbox), vbox, TRUE, TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(vbox), 8); @@ -189,7 +189,7 @@ GtkWidget *create_goto_dialog(GtkWindow *parent) /* Propriétés de la localisation */ - hbox = gtk_hbox_new(FALSE, 8); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(hbox), 8); diff --git a/src/dialogs/plugins.c b/src/dialogs/plugins.c index a1778ae..ea9c9e2 100644 --- a/src/dialogs/plugins.c +++ b/src/dialogs/plugins.c @@ -114,12 +114,12 @@ GtkWidget *create_plugins_selection_dialog(GLoadedBinary *binary, GtkWindow *par - vbox1 = gtk_vbox_new(FALSE, 8); + vbox1 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox1); gtk_container_add(GTK_CONTAINER(result), vbox1); gtk_container_set_border_width(GTK_CONTAINER(vbox1), 8); - hbox3 = gtk_hbox_new(FALSE, 8); + hbox3 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox3); gtk_box_pack_start(GTK_BOX(vbox1), hbox3, TRUE, TRUE, 0); @@ -132,7 +132,7 @@ GtkWidget *create_plugins_selection_dialog(GLoadedBinary *binary, GtkWindow *par gtk_widget_show(treeview1); gtk_container_add(GTK_CONTAINER(scrolledwindow1), treeview1); - vbox2 = gtk_vbox_new(TRUE, 0); + vbox2 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox2); gtk_box_pack_start(GTK_BOX(hbox3), vbox2, FALSE, FALSE, 0); @@ -199,11 +199,11 @@ GtkWidget *create_plugins_selection_dialog(GLoadedBinary *binary, GtkWindow *par gtk_box_pack_start(GTK_BOX(vbox1), expander1, FALSE, FALSE, 0); gtk_expander_set_expanded(GTK_EXPANDER(expander1), TRUE); - hbox4 = gtk_hbox_new(FALSE, 0); + hbox4 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox4); gtk_container_add(GTK_CONTAINER(expander1), hbox4); - vbox3 = gtk_vbox_new(FALSE, 0); + vbox3 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox3); gtk_box_pack_start(GTK_BOX(hbox4), vbox3, TRUE, TRUE, 0); @@ -277,7 +277,7 @@ GtkWidget *create_plugins_selection_dialog(GLoadedBinary *binary, GtkWindow *par gtk_widget_show(alignment1); gtk_container_add(GTK_CONTAINER(button1), alignment1); - hbox1 = gtk_hbox_new(FALSE, 2); + hbox1 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox1); gtk_container_add(GTK_CONTAINER(alignment1), hbox1); @@ -297,7 +297,7 @@ GtkWidget *create_plugins_selection_dialog(GLoadedBinary *binary, GtkWindow *par gtk_widget_show(alignment2); gtk_container_add(GTK_CONTAINER(button2), alignment2); - hbox2 = gtk_hbox_new(FALSE, 2); + hbox2 = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox2); gtk_container_add(GTK_CONTAINER(alignment2), hbox2); diff --git a/src/dialogs/shellcode.c b/src/dialogs/shellcode.c index 2f43d99..c6087b8 100644 --- a/src/dialogs/shellcode.c +++ b/src/dialogs/shellcode.c @@ -253,7 +253,7 @@ static void register_bincode_panel(GtkAssistant *assistant) alignment = qck_create_padded_alignment(8, 8, 8, 8); - vbox = gtk_vbox_new(FALSE, 0); + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox); gtk_container_add(GTK_CONTAINER(alignment), vbox); @@ -509,7 +509,7 @@ static void register_archi_panel(GtkAssistant *assistant) alignment = qck_create_padded_alignment(8, 8, 8, 8); - vbox = gtk_vbox_new(FALSE, 0); + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox); gtk_container_add(GTK_CONTAINER(alignment), vbox); @@ -588,13 +588,13 @@ static void register_output_panel(GtkAssistant *assistant) alignment = qck_create_padded_alignment(8, 8, 8, 8); - vbox = gtk_vbox_new(TRUE, 0); + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox); gtk_container_add(GTK_CONTAINER(alignment), vbox); /* Format de sortie */ - hbox = gtk_hbox_new(FALSE, 0); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); @@ -610,7 +610,7 @@ static void register_output_panel(GtkAssistant *assistant) /* Fichier de sortie */ - hbox = gtk_hbox_new(FALSE, 0); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); @@ -747,7 +747,7 @@ static void register_content_panel(GtkAssistant *assistant) alignment = qck_create_padded_alignment(8, 8, 8, 8); - vbox = gtk_vbox_new(TRUE, 0); + vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox); gtk_container_add(GTK_CONTAINER(alignment), vbox); @@ -756,7 +756,7 @@ static void register_content_panel(GtkAssistant *assistant) frame = qck_create_frame(_("<b>Lines to process</b>"), &subalign, 0, 0, 12, 0); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); - vbox3 = gtk_vbox_new(FALSE, 0); + vbox3 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox3); gtk_container_add(GTK_CONTAINER(subalign), vbox3); @@ -777,7 +777,7 @@ static void register_content_panel(GtkAssistant *assistant) frame = qck_create_frame(_("<b>Items to display</b>"), &subalign, 0, 0, 12, 0); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); - vbox4 = gtk_vbox_new(FALSE, 0); + vbox4 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox4); gtk_container_add(GTK_CONTAINER(subalign), vbox4); diff --git a/src/editor.c b/src/editor.c index 1c5fbd9..17468e3 100644 --- a/src/editor.c +++ b/src/editor.c @@ -168,7 +168,7 @@ GtkWidget *create_editor(void) - vbox1 = gtk_vbox_new(FALSE, 0); + vbox1 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(vbox1); gtk_container_add(GTK_CONTAINER(result), vbox1); diff --git a/src/gui/panels/strings.c b/src/gui/panels/strings.c index 630b175..8706151 100644 --- a/src/gui/panels/strings.c +++ b/src/gui/panels/strings.c @@ -163,7 +163,7 @@ static void g_strings_panel_init(GStringsPanel *panel) base = G_EDITOR_ITEM(panel); - base->widget = gtk_vbox_new(FALSE, 0); + base->widget = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(base->widget); ref = G_OBJECT(base->widget); diff --git a/src/gui/panels/symbols.c b/src/gui/panels/symbols.c index 959fb2c..40a135c 100644 --- a/src/gui/panels/symbols.c +++ b/src/gui/panels/symbols.c @@ -216,7 +216,7 @@ static void g_symbols_panel_init(GSymbolsPanel *panel) base = G_EDITOR_ITEM(panel); - base->widget = gtk_vbox_new(FALSE, 0); + base->widget = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(base->widget); ref = G_OBJECT(base->widget); @@ -224,7 +224,7 @@ static void g_symbols_panel_init(GSymbolsPanel *panel) /* Barre d'outils supérieure */ - box = gtk_hbox_new(FALSE, 0); + box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(box); gtk_box_pack_start(GTK_BOX(base->widget), box, FALSE, FALSE, 0); diff --git a/src/gui/tb/source.c b/src/gui/tb/source.c index 74de77e..bac6b0f 100644 --- a/src/gui/tb/source.c +++ b/src/gui/tb/source.c @@ -78,7 +78,7 @@ static GtkWidget *build_source_tb_widget(GObject *ref) gtk_widget_show(handlebox); gtk_container_add(GTK_CONTAINER(result), handlebox); - hbox = gtk_hbox_new(FALSE, 0); + hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 8); gtk_widget_show(hbox); gtk_container_add(GTK_CONTAINER(handlebox), hbox); diff --git a/src/panels/breaks.c b/src/panels/breaks.c index e8923e0..4bdac36 100644 --- a/src/panels/breaks.c +++ b/src/panels/breaks.c @@ -156,7 +156,7 @@ static void g_breaks_panel_init(GBreaksPanel *panel) base->name = _("Breakpoints"); base->reload_binary = (reload_for_new_binary_fc)reload_breaks_for_new_binary; - base->widget = gtk_vbox_new(FALSE, 0); + base->widget = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show(base->widget); ref = G_OBJECT(base->widget); diff --git a/src/panels/registers.c b/src/panels/registers.c index 778e902..184d247 100644 --- a/src/panels/registers.c +++ b/src/panels/registers.c @@ -93,7 +93,7 @@ GtkWidget *build_registers_panel(void) - vbox1 = gtk_vbox_new (FALSE, 0); + vbox1 = gtk_box_new(GTK_ORIENTATION_VERTICAL, 8); gtk_widget_show (vbox1); gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(result), vbox1); |