Commit 51d4ca09 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Marge Bot
Browse files

Stop using GtkButton:relief

This will go away in GTK4, use .flat style class instead.

Part-of: <!1038>
parent 9f74f119
......@@ -147,10 +147,10 @@ ephy_notification_init (EphyNotification *self)
self->close_button = gtk_button_new ();
g_object_set (self->close_button,
"relief", GTK_RELIEF_NONE,
"focus-on-click", FALSE,
"margin", 6,
NULL);
gtk_style_context_add_class (gtk_widget_get_style_context (self->close_button), "flat");
gtk_grid_attach (GTK_GRID (self->grid), self->close_button, 1, 0, 1, 2);
image = gtk_image_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_BUTTON);
......
......@@ -200,7 +200,7 @@ ephy_bookmark_properties_create_tag_widget (EphyBookmarkProperties *self,
gtk_image_new_from_icon_name ("window-close-symbolic",
GTK_ICON_SIZE_MENU));
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
gtk_style_context_add_class (gtk_widget_get_style_context (button), "flat");
gtk_box_pack_start (GTK_BOX (box), button, FALSE, TRUE, 0);
g_signal_connect_object (button, "clicked",
G_CALLBACK (ephy_bookmark_properties_tag_widget_button_clicked_cb),
......
......@@ -457,7 +457,6 @@ create_row (EphyHistoryDialog *self,
g_object_set_data (G_OBJECT (row), "check-button", check_button);
gtk_widget_set_valign (check_button, GTK_ALIGN_CENTER);
gtk_widget_set_tooltip_text (check_button, _("Remove the selected pages from history"));
gtk_button_set_relief (GTK_BUTTON (check_button), GTK_RELIEF_NONE);
g_signal_connect (check_button, "toggled", G_CALLBACK (row_check_button_toggled), self);
/* Copy URL button */
......
......@@ -27,13 +27,15 @@
<object class="GtkButton" id="properties_button">
<property name="visible">True</property>
<property name="receives_default">False</property>
<property name="relief">none</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="icon_name">emblem-system-symbolic</property>
</object>
</child>
<style>
<class name="flat"/>
</style>
</object>
</child>
</object>
......
......@@ -60,7 +60,6 @@
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">Close page</property>
<property name="valign">center</property>
<property name="relief">none</property>
<signal name="clicked" handler="close_clicked_cb" swapped="yes"/>
<child>
<object class="GtkImage">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment