[gtk+] Fix a few warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix a few warnings
- Date: Fri, 20 Dec 2013 20:15:47 +0000 (UTC)
commit 1bfe9d0db93e1a1aad9bc6e0d03324099fb55375
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 20 15:15:31 2013 -0500
Fix a few warnings
gtk/a11y/gtkmenubuttonaccessible.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/a11y/gtkmenubuttonaccessible.c b/gtk/a11y/gtkmenubuttonaccessible.c
index c5c8977..c640fec 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]