[gtksourceview] No longer use Gtk[HV]Box as it is deprecated
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] No longer use Gtk[HV]Box as it is deprecated
- Date: Sun, 12 Jun 2011 20:24:19 +0000 (UTC)
commit 13cec8f6183012938f42df1f03a1bff6795b68b6
Author: Garrett Regier <alias301 gmail com>
Date: Sun Jun 12 13:23:15 2011 -0700
No longer use Gtk[HV]Box as it is deprecated
gtksourceview/gtksourcecompletionui.h | 6 +++---
gtksourceview/gtksourcegutterrenderermarks.c | 6 +++---
tests/test-completion.c | 4 ++--
tests/test-widget.c | 2 +-
4 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletionui.h b/gtksourceview/gtksourcecompletionui.h
index f1bb986..f09519d 100644
--- a/gtksourceview/gtksourcecompletionui.h
+++ b/gtksourceview/gtksourcecompletionui.h
@@ -37,7 +37,7 @@ static gchar gtk_source_completion_ui[] =
" <property name=\"focus_on_map\">False</property>"
" <property name=\"decorated\">False</property>"
" <child>"
-" <object class=\"GtkVBox\" id=\"vbox_completion\">"
+" <object class=\"GtkBox\" id=\"vbox_completion\">"
" <property name=\"visible\">True</property>"
" <property name=\"orientation\">vertical</property>"
" <child>"
@@ -83,7 +83,7 @@ static gchar gtk_source_completion_ui[] =
" </packing>"
" </child>"
" <child>"
-" <object class=\"GtkHBox\" id=\"hbox_bottom_bar\">"
+" <object class=\"GtkBox\" id=\"hbox_bottom_bar\">"
" <property name=\"visible\">True</property>"
" <child>"
" <object class=\"GtkToggleButton\" id=\"toggle_button_info\">"
@@ -94,7 +94,7 @@ static gchar gtk_source_completion_ui[] =
" <property name=\"focus_on_click\">False</property>"
" <property name=\"relief\">GTK_RELIEF_NONE</property>"
" <child>"
-" <object class=\"GtkHBox\" id=\"hbox_info\">"
+" <object class=\"GtkBox\" id=\"hbox_info\">"
" <property name=\"visible\">True</property>"
" <property name=\"spacing\">2</property>"
" <child>"
diff --git a/gtksourceview/gtksourcegutterrenderermarks.c b/gtksourceview/gtksourcegutterrenderermarks.c
index a8c41ab..4780193 100644
--- a/gtksourceview/gtksourcegutterrenderermarks.c
+++ b/gtksourceview/gtksourcegutterrenderermarks.c
@@ -259,11 +259,11 @@ set_tooltip_widget_from_marks (GtkSourceView *view,
if (vbox == NULL)
{
- vbox = gtk_vbox_new (FALSE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_show (vbox);
}
- hbox = gtk_hbox_new (FALSE, 4);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
@@ -346,7 +346,7 @@ set_tooltip_widget_from_marks (GtkSourceView *view,
{
GtkWidget *separator;
- separator = gtk_hseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_widget_show (separator);
diff --git a/tests/test-completion.c b/tests/test-completion.c
index 21642ea..ad2b27c 100644
--- a/tests/test-completion.c
+++ b/tests/test-completion.c
@@ -211,8 +211,8 @@ create_window (void)
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_resize (GTK_WINDOW (window), 600, 400);
- vbox = gtk_vbox_new (FALSE, 1);
- hbox = gtk_hbox_new (FALSE, 1);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 1);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 1);
view = gtk_source_view_new ();
GtkWidget *scroll = gtk_scrolled_window_new (NULL, NULL);
diff --git a/tests/test-widget.c b/tests/test-widget.c
index b620057..406c13e 100644
--- a/tests/test-widget.c
+++ b/tests/test-widget.c
@@ -1404,7 +1404,7 @@ create_view_window (GtkSourceBuffer *buffer, GtkSourceView *from)
}
/* misc widgets */
- vbox = gtk_vbox_new (0, FALSE);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
sw = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw),
GTK_SHADOW_IN);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]