From 85a2fb10b791b76d49568473cd181d5fe98dcbed Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 25 Oct 2014 13:22:09 +0200 Subject: theme-viewer: stop using gtk_misc_set_alignment for Gtk+3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on metacity commit: 99bfe2d27c6babeeea3539b990505895750d3541 From: Alberts Muktupāvels --- src/ui/theme-viewer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui') diff --git a/src/ui/theme-viewer.c b/src/ui/theme-viewer.c index 95858d2e..cecfcb05 100644 --- a/src/ui/theme-viewer.c +++ b/src/ui/theme-viewer.c @@ -244,7 +244,12 @@ dialog_contents (void) label = gtk_label_new (_("This is a sample message in a sample dialog")); image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_DIALOG); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_set_halign (image, GTK_ALIGN_CENTER); + gtk_widget_set_valign (image, GTK_ALIGN_START); +#else gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0); +#endif gtk_label_set_line_wrap (GTK_LABEL (label), TRUE); gtk_label_set_selectable (GTK_LABEL (label), TRUE); -- cgit v1.2.1