Hello community, here is the log from the commit of package imhangul for openSUSE:Factory checked in at 2017-04-07 13:53:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/imhangul (Old) and /work/SRC/openSUSE:Factory/.imhangul.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "imhangul" Fri Apr 7 13:53:55 2017 rev:24 rq:482533 version:3.1.1+git20130112.a4c2796 Changes: -------- --- /work/SRC/openSUSE:Factory/imhangul/imhangul.changes 2015-08-27 08:57:30.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.imhangul.new/imhangul.changes 2017-04-07 13:54:01.157438981 +0200 @@ -7 +7 @@ -- add deprecated-gtk3.14.patch +- add deprecated-gtkalignment-gtk3.14.patch Old: ---- _servicedata deprecated-gtk3.14.patch New: ---- deprecated-gtkalignment-gtk3.14.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ imhangul.spec ++++++ --- /var/tmp/diff_new_pack.x0IIHQ/_old 2017-04-07 13:54:01.773351980 +0200 +++ /var/tmp/diff_new_pack.x0IIHQ/_new 2017-04-07 13:54:01.773351980 +0200 @@ -1,7 +1,7 @@ # # spec file for package imhangul # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,8 +25,8 @@ Url: https://github.com/choehwanjin/imhangul Source: imhangul-%{version}.tar.xz Source1: baselibs.conf -# PATCH-FIX-UPSTREAM don't use gtk_alignment_set_padding -Patch: deprecated-gtk3.14.patch +# PATCH-FIX-UPSTREAM marguerite@opensuse.org don't use gtk_alignment_set_padding +Patch: deprecated-gtkalignment-gtk3.14.patch BuildRequires: glib2-devel BuildRequires: gtk3-devel BuildRequires: libhangul-devel @@ -40,9 +40,7 @@ %prep %setup -q -%if 0%{?suse_version} >= 1320 %patch -p1 -%endif NOCONFIGURE=1 ./autogen.sh %build ++++++ deprecated-gtkalignment-gtk3.14.patch ++++++ Index: b/gtkimcontexthangul.c =================================================================== --- a/gtkimcontexthangul.c +++ b/gtkimcontexthangul.c @@ -1616,7 +1616,10 @@ static GtkWidget* status_window_new(GtkWidget *parent) { GtkWidget *window; +#if GTK_CHECK_VERSION(3, 14, 0) +#else GtkWidget *alignment; +#endif GtkWidget *label; GtkStyleContext* style_context; GtkBorder padding; @@ -1640,16 +1643,30 @@ status_window_new(GtkWidget *parent) gtk_style_context_get_padding (style_context, 0, &padding); gtk_style_context_get_border (style_context, 0, &border); +#if GTK_CHECK_VERSION(3, 14, 0) + gtk_widget_set_halign(window, GTK_ALIGN_CENTER); + gtk_widget_set_valign(window, GTK_ALIGN_CENTER); + gtk_widget_set_margin_top(window, (gint)(border.top + padding.top)); + gtk_widget_set_margin_bottom(window, (gint)(border.bottom + padding.bottom)); + gtk_widget_set_margin_start(window, (gint)(border.left + padding.left)); + gtk_widget_set_margin_end(window, (gint)(border.right + padding.right)); + gtk_container_add (GTK_CONTAINER(window), window); +#else alignment = gtk_alignment_new (0.5, 0.5, 1.0, 1.0); gtk_alignment_set_padding (GTK_ALIGNMENT(alignment), border.top + padding.top, border.bottom + padding.bottom, border.left + padding.left, border.right + padding.right); gtk_container_add (GTK_CONTAINER(window), alignment); gtk_widget_show (alignment); +#endif /* hangul status window label */ label = gtk_label_new (_("hangul")); +#if GTK_CHECK_VERSION(3, 14, 0) + gtk_container_add (GTK_CONTAINER(window), label); +#else gtk_container_add (GTK_CONTAINER(alignment), label); +#endif gtk_widget_show (label); g_signal_connect (G_OBJECT(window), "draw",