summaryrefslogtreecommitdiff
path: root/gtk/a11y
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-12-20 15:15:31 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-12-20 15:15:31 -0500
commit1bfe9d0db93e1a1aad9bc6e0d03324099fb55375 (patch)
tree67a6e706006f66cec2f6fb0724ea23c3b3d773a7 /gtk/a11y
parent18d439ee40d77cea07875b6dfff3cfe40b91e5a0 (diff)
downloadgtk+-1bfe9d0db93e1a1aad9bc6e0d03324099fb55375.tar.gz
Fix a few warnings
Diffstat (limited to 'gtk/a11y')
-rw-r--r--gtk/a11y/gtkmenubuttonaccessible.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/a11y/gtkmenubuttonaccessible.c b/gtk/a11y/gtkmenubuttonaccessible.c
index c5c897704c..c640feca40 100644
--- a/gtk/a11y/gtkmenubuttonaccessible.c
+++ b/gtk/a11y/gtkmenubuttonaccessible.c
@@ -41,7 +41,7 @@ gtk_menu_button_accessible_get_n_children (AtkObject* obj)
if (widget == NULL)
return count;
- submenu = gtk_menu_button_get_popup (GTK_MENU_BUTTON (widget));
+ submenu = GTK_WIDGET (gtk_menu_button_get_popup (GTK_MENU_BUTTON (widget)));
if (submenu)
{
GList *children;
@@ -57,7 +57,7 @@ static AtkObject *
gtk_menu_button_accessible_ref_child (AtkObject *obj,
gint i)
{
- AtkObject *accessible;
+ AtkObject *accessible = NULL;
GtkWidget *widget;
GtkWidget *submenu;
@@ -65,7 +65,7 @@ gtk_menu_button_accessible_ref_child (AtkObject *obj,
if (widget == NULL)
return NULL;
- submenu = gtk_menu_button_get_popup (GTK_MENU_BUTTON (widget));
+ submenu = GTK_WIDGET (gtk_menu_button_get_popup (GTK_MENU_BUTTON (widget)));
if (submenu)
{
GList *children;