[gnome-flashback] libautomount-manager: don't use deprecated GtkMisc
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] libautomount-manager: don't use deprecated GtkMisc
- Date: Mon, 24 Nov 2014 09:13:44 +0000 (UTC)
commit 928eccf3068d18be0b3a473ab738e737ef3e5e96
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Nov 24 08:55:20 2014 +0200
libautomount-manager: don't use deprecated GtkMisc
gnome-flashback/libautomount-manager/gsd-autorun.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libautomount-manager/gsd-autorun.c
b/gnome-flashback/libautomount-manager/gsd-autorun.c
index 2783ec8..d5112df 100644
--- a/gnome-flashback/libautomount-manager/gsd-autorun.c
+++ b/gnome-flashback/libautomount-manager/gsd-autorun.c
@@ -683,7 +683,8 @@ show_dialog:
icon_size = get_icon_size_for_stock_size (GTK_ICON_SIZE_DIALOG);
image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
pixbuf = render_icon (icon, icon_size);
- gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0);
+ gtk_widget_set_halign (image, GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (image, GTK_ALIGN_START);
gtk_box_pack_start (GTK_BOX (hbox), image, TRUE, TRUE, 0);
/* also use the icon on the dialog */
gtk_window_set_title (GTK_WINDOW (dialog), mount_name);
@@ -736,7 +737,7 @@ show_dialog:
gtk_label_set_markup (GTK_LABEL (label), markup);
g_free (markup);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0);
label = gtk_label_new (NULL);
@@ -746,7 +747,7 @@ show_dialog:
gtk_label_set_markup (GTK_LABEL (label), markup);
g_free (markup);
gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
- gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_label_set_xalign (GTK_LABEL (label), 0.0);
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 0);
data = g_new0 (AutorunDialogData, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]