[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-850-gcbd1fb9ea
paul at claws-mail.org
paul at claws-mail.org
Fri Nov 22 10:27:47 CET 2019
The branch, gtk3 has been updated
via cbd1fb9ea393a51e8340620c2800ee7130e4cd03 (commit)
from 2053f301428b2ebfafde1551800911700432ddcc (commit)
Summary of changes:
src/gtk/gtkutils.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit cbd1fb9ea393a51e8340620c2800ee7130e4cd03
Author: paul <paul at claws-mail.org>
Date: Fri Nov 22 10:27:41 2019 +0000
replace deprecated gtk_widget_set_state()
diff --git a/src/gtk/gtkutils.c b/src/gtk/gtkutils.c
index 063bb4c7a..a9e710c16 100644
--- a/src/gtk/gtkutils.c
+++ b/src/gtk/gtkutils.c
@@ -1203,8 +1203,7 @@ static void link_btn_enter(GtkButton *button, gpointer data)
gdk_window_set_cursor(gdkwin, hand_cursor);
gtk_button_set_relief(button, GTK_RELIEF_NONE);
- gtk_widget_set_state(GTK_WIDGET(button), GTK_STATE_NORMAL);
-
+ gtk_widget_set_state_flags(GTK_WIDGET(button), GTK_STATE_FLAG_NORMAL, TRUE);
}
static void link_btn_leave(GtkButton *button, gpointer data)
@@ -1218,26 +1217,26 @@ static void link_btn_leave(GtkButton *button, gpointer data)
gdk_window_set_cursor(gdkwin, NULL);
gtk_button_set_relief(button, GTK_RELIEF_NONE);
- gtk_widget_set_state(GTK_WIDGET(button), GTK_STATE_NORMAL);
+ gtk_widget_set_state_flags(GTK_WIDGET(button), GTK_STATE_FLAG_NORMAL, TRUE);
}
static void link_btn_pressed(GtkButton *button, gpointer data)
{
gtk_button_set_relief(button, GTK_RELIEF_NONE);
- gtk_widget_set_state(GTK_WIDGET(button), GTK_STATE_NORMAL);
+ gtk_widget_set_state_flags(GTK_WIDGET(button), GTK_STATE_FLAG_NORMAL, TRUE);
}
static void link_btn_released(GtkButton *button, gpointer data)
{
gtk_button_set_relief(button, GTK_RELIEF_NONE);
- gtk_widget_set_state(GTK_WIDGET(button), GTK_STATE_NORMAL);
+ gtk_widget_set_state_flags(GTK_WIDGET(button), GTK_STATE_FLAG_NORMAL, TRUE);
}
static void link_btn_clicked(GtkButton *button, gpointer data)
{
gchar *url = (gchar *)data;
gtk_button_set_relief(button, GTK_RELIEF_NONE);
- gtk_widget_set_state(GTK_WIDGET(button), GTK_STATE_NORMAL);
+ gtk_widget_set_state_flags(GTK_WIDGET(button), GTK_STATE_FLAG_NORMAL, TRUE);
open_uri(url, prefs_common_get_uri_cmd());
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list