summaryrefslogtreecommitdiff
path: root/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 16:50:59 +0200
committerLuke from DC <[email protected]>2022-02-09 04:42:12 +0000
commit47b5bd2b1759c27b48123957a8aa9c36c2414a39 (patch)
tree740492710c5183f2f878be5ade77641b12569468 /capplets/keyboard/mate-keyboard-properties-xkbltadd.c
parent2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64 (diff)
downloadmate-control-center-47b5bd2b1759c27b48123957a8aa9c36c2414a39.tar.bz2
mate-control-center-47b5bd2b1759c27b48123957a8aa9c36c2414a39.tar.xz
Unnecessary GTK_WIDGET cast
Diffstat (limited to 'capplets/keyboard/mate-keyboard-properties-xkbltadd.c')
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkbltadd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
index 1edaa666..f8db00d5 100644
--- a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
+++ b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
@@ -155,7 +155,7 @@ xkb_layout_chooser_enable_disable_buttons (GtkBuilder * chooser_dialog)
{
GtkWidget *cbv =
CWID (gtk_notebook_get_current_page
- (GTK_NOTEBOOK (CWID ("choosers_nb"))) ?
+ (GTK_NOTEBOOK (gtk_builder_get_object (chooser_dialog, "choosers_nb"))) ?
"xkb_language_variants_available" :
"xkb_country_variants_available");
GtkTreeIter viter;
@@ -532,7 +532,7 @@ xkb_layout_chooser_get_selected_id (GtkBuilder * chooser_dialog)
{
GtkWidget *cbv =
CWID (gtk_notebook_get_current_page
- (GTK_NOTEBOOK (CWID ("choosers_nb"))) ?
+ (GTK_NOTEBOOK (gtk_builder_get_object (chooser_dialog, "choosers_nb"))) ?
"xkb_language_variants_available" :
"xkb_country_variants_available");
GtkTreeModel *vm = gtk_combo_box_get_model (GTK_COMBO_BOX (cbv));