user-accounts: replace deprecated gtk_widget_get_state

https://bugzilla.gnome.org/show_bug.cgi?id=731271
This commit is contained in:
Ondrej Holy 2014-05-30 13:20:22 +02:00
parent 9b4fcd6266
commit 06367651d7

View file

@ -530,7 +530,7 @@ popup_button_draw (GtkWidget *widget,
cairo_t *cr, cairo_t *cr,
UmPhotoDialog *um) UmPhotoDialog *um)
{ {
if (gtk_widget_get_state (gtk_bin_get_child (GTK_BIN (widget))) != GTK_STATE_PRELIGHT && if (!(gtk_widget_get_state_flags (gtk_bin_get_child (GTK_BIN (widget))) & GTK_STATE_FLAG_PRELIGHT) &&
!gtk_widget_is_focus (widget)) { !gtk_widget_is_focus (widget)) {
return; return;
} }