[gcr] gcr-unlock-options-widget: gtk_widget_get_state() deprecated
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] gcr-unlock-options-widget: gtk_widget_get_state() deprecated
- Date: Sun, 5 Jan 2014 20:46:32 +0000 (UTC)
commit b66b4cdfcc6d481a32e4bc404fdc553d030eab02
Author: Stef Walter <stefw gnome org>
Date: Sun Jan 5 20:13:16 2014 +0100
gcr-unlock-options-widget: gtk_widget_get_state() deprecated
Use alternative
ui/gcr-unlock-options-widget.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ui/gcr-unlock-options-widget.c b/ui/gcr-unlock-options-widget.c
index b852a1d..529b72a 100644
--- a/ui/gcr-unlock-options-widget.c
+++ b/ui/gcr-unlock-options-widget.c
@@ -482,8 +482,8 @@ gcr_unlock_options_widget_get_sensitive (GcrUnlockOptionsWidget *self, const gch
g_return_val_if_fail (option, FALSE);
button = widget_button_for_option (self, option);
- state = gtk_widget_get_state (GTK_WIDGET (button));
- return (state & GTK_STATE_INSENSITIVE) != GTK_STATE_INSENSITIVE;
+ state = gtk_widget_get_state_flags (GTK_WIDGET (button));
+ return (state & GTK_STATE_FLAG_INSENSITIVE) != GTK_STATE_FLAG_INSENSITIVE;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]