[gtk+/wip/baedert/box: 34/65] buttonaccessible: Stop looking at the button's image



commit 4207c7adf6dfe651c87f803ea3cf9b6f3a0c92d2
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 14 15:58:48 2016 +0200

    buttonaccessible: Stop looking at the button's image

 gtk/a11y/gtkbuttonaccessible.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/a11y/gtkbuttonaccessible.c b/gtk/a11y/gtkbuttonaccessible.c
index 4873399..90fb259 100644
--- a/gtk/a11y/gtkbuttonaccessible.c
+++ b/gtk/a11y/gtkbuttonaccessible.c
@@ -60,7 +60,7 @@ get_image_from_button (GtkWidget *button)
 {
   GtkWidget *image;
 
-  image = gtk_button_get_image (GTK_BUTTON (button));
+  image = gtk_bin_get_child (GTK_BIN (button));
   if (GTK_IS_IMAGE (image))
     return image;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]