diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2021-02-11 16:13:25 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2021-02-11 16:14:47 +1300 |
commit | cbb2d31a3811032bad36f582ba3552f4e4fc9324 (patch) | |
tree | b4ddbdf3714e7cebad60cc9d573097d658626aba /panels | |
parent | 5d4c7c5ee062c74914f83b7c879898714468c02d (diff) | |
download | gnome-control-center-cbb2d31a3811032bad36f582ba3552f4e4fc9324.tar.gz |
user-accounts: Add missing GTK_WIDGET cast
Was missing in 77df081fecdfe8386fea00d0d4b9de298cbd8a03
Diffstat (limited to 'panels')
-rw-r--r-- | panels/user-accounts/cc-user-panel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/panels/user-accounts/cc-user-panel.c b/panels/user-accounts/cc-user-panel.c index ee9a8290f..cf3b0e24a 100644 --- a/panels/user-accounts/cc-user-panel.c +++ b/panels/user-accounts/cc-user-panel.c @@ -921,14 +921,14 @@ show_user (ActUser *user, CcUserPanel *self) #ifdef HAVE_MALCONTENT /* Parental Controls: Unavailable if user is admin */ if (act_user_get_account_type (user) == ACT_USER_ACCOUNT_TYPE_ADMINISTRATOR) { - GtkStyleContext *context = gtk_widget_get_style_context (self->parental_controls_button_label); + GtkStyleContext *context = gtk_widget_get_style_context (GTK_WIDGET (self->parental_controls_button_label)); gtk_widget_hide (GTK_WIDGET (self->parental_control_go_next)); /* TRANSLATORS: Status of Parental Controls setup */ gtk_label_set_text (self->parental_controls_button_label, _("Unavailable")); gtk_style_context_add_class (context, "dim-label"); } else { - GtkStyleContext *context = gtk_widget_get_style_context (self->parental_controls_button_label); + GtkStyleContext *context = gtk_widget_get_style_context (GTK_WIDGET (self->parental_controls_button_label)); if (is_parental_controls_enabled_for_user (user)) /* TRANSLATORS: Status of Parental Controls setup */ |