/pidgin/main: 1eb11cc2c01f: Replace deprecated gtk_misc_set_padd...
Elliott Sales de Andrade <[email protected]> Tue, 06 Sep 2016 15:45:51 -0400
| Newsgroups | gmane.comp.gnome.gaim.cvs |
|---|---|
| Message-ID | <[email protected]> |
Changeset: 1eb11cc2c01f75f65e7eeb60d733df1fff720860 Author: Elliott Sales de Andrade <[email protected]> Date: 2016-09-03 18:26 -0400 Branch: default URL: https://hg.pidgin.im/pidgin/main/rev/1eb11cc2c01f Description: Replace deprecated gtk_misc_set_padding. diffstat: pidgin/gtkconv.c | 8 +++++++- pidgin/plugins/screencap.c | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diffs (38 lines): diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c --- a/pidgin/gtkconv.c +++ b/pidgin/gtkconv.c @@ -10482,7 +10482,13 @@ pidgin_conv_tab_pack(PidginConvWindow *w #if 0 gtk_label_set_alignment(GTK_LABEL(gtkconv->tab_label), 0.0, 0.5); - gtk_misc_set_padding(GTK_MISC(gtkconv->tab_label), 4, 0); +#if GTK_CHECK_VERSION(3,12,0) + gtk_widget_set_margin_start(gtkconv->tab_label, 4); + gtk_widget_set_margin_end(gtkconv->tab_label, 4); +#else + gtk_widget_set_margin_left(gtkconv->tab_label, 4); + gtk_widget_set_margin_right(gtkconv->tab_label, 4); +#endif #endif if (angle) diff --git a/pidgin/plugins/screencap.c b/pidgin/plugins/screencap.c --- a/pidgin/plugins/screencap.c +++ b/pidgin/plugins/screencap.c @@ -634,7 +634,15 @@ scrncap_do_screenshot_cb(gpointer _webvi "or press Escape button to cancel")); gtk_label_set_markup(GTK_LABEL(hint), hint_msg); g_free(hint_msg); - gtk_misc_set_padding(GTK_MISC(hint), 10, 7); +#if GTK_CHECK_VERSION(3,12,0) + gtk_widget_set_margin_start(hint, 10); + gtk_widget_set_margin_end(hint, 10); +#else + gtk_widget_set_margin_left(hint, 10); + gtk_widget_set_margin_right(hint, 10); +#endif + gtk_widget_set_margin_top(hint, 7); + gtk_widget_set_margin_bottom(hint, 7); hint_box = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(hint_box), hint); gtk_widget_get_preferred_size(hint, NULL, &hint_size); _______________________________________________ Commits mailing list [email protected] https://pidgin.im/cgi-bin/mailman/listinfo/commits