Changeset 246351 in webkit


Ignore:
Timestamp:
Jun 12, 2019 7:09:09 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] gtk_misc_set_alignment is deprecated since GTK 3.14
https://bugs.webkit.org/show_bug.cgi?id=198785

Patch by Ludovico de Nittis <ludovico.denittis@collabora.com> on 2019-06-12
Reviewed by Carlos Garcia Campos.

Replace the deprecated gtk_misc_set_alignment with halign and valign.

  • UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:

(createLabelWithLineWrap):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r246348 r246351  
     12019-06-12  Ludovico de Nittis  <ludovico.denittis@collabora.com>
     2
     3        [GTK] gtk_misc_set_alignment is deprecated since GTK 3.14
     4        https://bugs.webkit.org/show_bug.cgi?id=198785
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Replace the deprecated gtk_misc_set_alignment with halign and valign.
     9
     10        * UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:
     11        (createLabelWithLineWrap):
     12
    1132019-06-11  Wenson Hsieh  <wenson_hsieh@apple.com>
    214
  • trunk/Source/WebKit/UIProcess/API/gtk/WebKitAuthenticationDialog.cpp

    r238851 r246351  
    7676{
    7777    GtkWidget* label = gtk_label_new(text);
    78     gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
     78    gtk_widget_set_halign(label, GTK_ALIGN_START);
     79    gtk_widget_set_valign(label, GTK_ALIGN_CENTER);
    7980    gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
    8081    gtk_label_set_max_width_chars(GTK_LABEL(label), 40);
Note: See TracChangeset for help on using the changeset viewer.