+GtkLabel *wxButton::GTKGetLabel() const
+{
+ GtkWidget* child = gtk_bin_get_child(GTK_BIN(m_widget));
+ if ( GTK_IS_ALIGNMENT(child) )
+ {
+ GtkWidget* box = gtk_bin_get_child(GTK_BIN(child));
+ GtkLabel* label = NULL;
+ GList* list = gtk_container_get_children(GTK_CONTAINER(box));
+ for (GList* item = list; item; item = item->next)
+ {
+ GtkBoxChild* boxChild = static_cast<GtkBoxChild*>(item->data);
+ if ( GTK_IS_LABEL(boxChild->widget) )
+ label = GTK_LABEL(boxChild->widget);
+ }
+ g_list_free(list);
+
+ return label;
+ }
+
+ return GTK_LABEL(child);
+}
+