Title: [246351] trunk/Source/WebKit
- Revision
- 246351
- Author
- [email protected]
- Date
- 2019-06-12 07:09:09 -0700 (Wed, 12 Jun 2019)
Log 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 <[email protected]> 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (246350 => 246351)
--- trunk/Source/WebKit/ChangeLog 2019-06-12 13:43:37 UTC (rev 246350)
+++ trunk/Source/WebKit/ChangeLog 2019-06-12 14:09:09 UTC (rev 246351)
@@ -1,3 +1,15 @@
+2019-06-12 Ludovico de Nittis <[email protected]>
+
+ [GTK] gtk_misc_set_alignment is deprecated since GTK 3.14
+ https://bugs.webkit.org/show_bug.cgi?id=198785
+
+ Reviewed by Carlos Garcia Campos.
+
+ Replace the deprecated gtk_misc_set_alignment with halign and valign.
+
+ * UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:
+ (createLabelWithLineWrap):
+
2019-06-11 Wenson Hsieh <[email protected]>
[iOS] Idempotent text autosizing needs to react properly to viewport changes
Modified: trunk/Source/WebKit/UIProcess/API/gtk/WebKitAuthenticationDialog.cpp (246350 => 246351)
--- trunk/Source/WebKit/UIProcess/API/gtk/WebKitAuthenticationDialog.cpp 2019-06-12 13:43:37 UTC (rev 246350)
+++ trunk/Source/WebKit/UIProcess/API/gtk/WebKitAuthenticationDialog.cpp 2019-06-12 14:09:09 UTC (rev 246351)
@@ -75,7 +75,8 @@
static GtkWidget* createLabelWithLineWrap(const char* text)
{
GtkWidget* label = gtk_label_new(text);
- gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
+ gtk_widget_set_halign(label, GTK_ALIGN_START);
+ gtk_widget_set_valign(label, GTK_ALIGN_CENTER);
gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
gtk_label_set_max_width_chars(GTK_LABEL(label), 40);
return label;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes