This is an automated email from the git hooks/post-receive script. f2404 pushed a commit to branch master in repository apps/xfce4-terminal.
commit 27119ea6dbb712b5e9202f3aff84bf0da78d2d79 Author: Igor <f2...@yandex.ru> Date: Wed Jun 29 15:26:09 2016 +0300 Replace deprecated gtk_misc_functions --- terminal/terminal-screen.c | 9 +++++---- terminal/terminal-window.c | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c index d6f476c..380a4fd 100644 --- a/terminal/terminal-screen.c +++ b/terminal/terminal-screen.c @@ -1476,8 +1476,8 @@ terminal_screen_update_label_orientation (TerminalScreen *screen) { angle = 0.0; ellipsize = PANGO_ELLIPSIZE_END; - - gtk_misc_set_alignment (GTK_MISC (screen->tab_label), 0.00, 0.50); + gtk_widget_set_halign (screen->tab_label, GTK_ALIGN_START); + gtk_widget_set_valign (screen->tab_label, GTK_ALIGN_CENTER); /* reset size request, ellipsize works now */ gtk_widget_set_size_request (screen->tab_label, -1, -1); @@ -1486,7 +1486,8 @@ terminal_screen_update_label_orientation (TerminalScreen *screen) { angle = position == GTK_POS_LEFT ? 90.0 : 270.0; ellipsize = PANGO_ELLIPSIZE_NONE; - gtk_misc_set_alignment (GTK_MISC (screen->tab_label), 0.50, 0.00); + gtk_widget_set_halign (screen->tab_label, GTK_ALIGN_CENTER); + gtk_widget_set_valign (screen->tab_label, GTK_ALIGN_START); /* set a minimum height of 30px, because ellipsize does not work */ gtk_widget_set_size_request (screen->tab_label, -1, 30); @@ -2151,7 +2152,7 @@ terminal_screen_get_tab_label (TerminalScreen *screen) gtk_widget_show (hbox); screen->tab_label = gtk_label_new (NULL); - gtk_misc_set_padding (GTK_MISC (screen->tab_label), 2, 0); + gtk_widget_set_margin_start (screen->tab_label, 2); gtk_label_set_width_chars (GTK_LABEL (screen->tab_label), 10); gtk_box_pack_start (GTK_BOX (hbox), screen->tab_label, TRUE, TRUE, 0); g_object_bind_property (G_OBJECT (screen), "title", diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c index 6ae46a7..3419e8a 100644 --- a/terminal/terminal-window.c +++ b/terminal/terminal-window.c @@ -516,7 +516,8 @@ terminal_window_confirm_close (TerminalWindow *window) gtk_widget_show (hbox); image = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_DIALOG); - 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, FALSE, FALSE, 0); gtk_widget_show (image); -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits