diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-01-08 07:39:36 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-01-08 07:39:36 (GMT) |
commit | 61a99411489f30089fc5a85b07ca7251f720ca1a (patch) | |
tree | e9ae0b2206c58a20bb1429c1a0f7c598a2ea9e17 /src/gtkext | |
parent | 5c88982fafe33c1183479e555992c759266b708e (diff) |
Removed deprecation warnings about gtk_misc_set_alignment().
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@450 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/easygtk.c | 3 | ||||
-rw-r--r-- | src/gtkext/gtkdockstation.c | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/gtkext/easygtk.c b/src/gtkext/easygtk.c index 1350b72..11e17a4 100644 --- a/src/gtkext/easygtk.c +++ b/src/gtkext/easygtk.c @@ -229,7 +229,8 @@ GtkWidget *qck_create_label(GObject *object, const char *name, const char *capti } gtk_widget_show(result); - gtk_misc_set_alignment(GTK_MISC(result), 0, 0.5); + gtk_widget_set_halign(result, GTK_ALIGN_START); + gtk_widget_set_valign(result, GTK_ALIGN_CENTER); return result; diff --git a/src/gtkext/gtkdockstation.c b/src/gtkext/gtkdockstation.c index 785ff42..2737557 100644 --- a/src/gtkext/gtkdockstation.c +++ b/src/gtkext/gtkdockstation.c @@ -120,11 +120,9 @@ static void gtk_dock_station_init(GtkDockStation *station) gtk_widget_show(hbox); gtk_container_add(GTK_CONTAINER(eventbox), hbox); - station->title = GTK_LABEL(gtk_label_new(("<b>titre</b>"))); - gtk_widget_show(GTK_WIDGET(station->title)); + station->title = GTK_LABEL(qck_create_label(NULL, NULL, "<b>titre</b>")); gtk_box_pack_start(GTK_BOX(hbox), GTK_WIDGET(station->title), TRUE, TRUE, 0); - gtk_label_set_use_markup(GTK_LABEL(station->title), TRUE); - gtk_misc_set_alignment(GTK_MISC(station->title), 0, 0.5); + gtk_label_set_use_markup(station->title, TRUE); button = gtk_button_new(); gtk_widget_show(button); |