[gnome-font-viewer] font-view: Fixed GTK+ deprecations
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-font-viewer] font-view: Fixed GTK+ deprecations
- Date: Sat, 3 Jan 2015 11:06:55 +0000 (UTC)
commit c203f9c322618310ed851f32ce8d1a3c9b61a311
Author: Robert Roth <robert roth off gmail com>
Date: Sun Oct 26 22:33:04 2014 +0200
font-view: Fixed GTK+ deprecations
https://bugzilla.gnome.org/show_bug.cgi?id=739224
src/font-view.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/font-view.c b/src/font-view.c
index e12304a..39d0b82 100644
--- a/src/font-view.c
+++ b/src/font-view.c
@@ -161,12 +161,14 @@ add_row (GtkWidget *grid,
name_w = gtk_label_new (name);
gtk_style_context_add_class (gtk_widget_get_style_context (name_w), "dim-label");
- gtk_misc_set_alignment (GTK_MISC (name_w), 1.0, 0.0);
+ gtk_widget_set_halign (name_w, GTK_ALIGN_END);
+ gtk_widget_set_valign (name_w, GTK_ALIGN_START);
gtk_container_add (GTK_CONTAINER (grid), name_w);
label = gtk_label_new (value);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
+ gtk_widget_set_valign (label, GTK_ALIGN_START);
gtk_label_set_selectable (GTK_LABEL(label), TRUE);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
@@ -483,8 +485,8 @@ info_button_clicked_cb (GtkButton *button,
gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_VERTICAL);
g_object_set (grid,
"margin-top", 6,
- "margin-left", 16,
- "margin-right", 16,
+ "margin-start", 16,
+ "margin-end", 16,
"margin-bottom", 6,
NULL);
gtk_grid_set_column_spacing (GTK_GRID (grid), 8);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]