[dia] Sheets&Objects: make remove button work without complaints again
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Sheets&Objects: make remove button work without complaints again
- Date: Fri, 16 Jul 2010 11:26:45 +0000 (UTC)
commit fc50c0bc461264d8d01851a34fb6a76c529e14e0
Author: Hans Breuer <hans breuer org>
Date: Fri Jul 16 13:06:59 2010 +0200
Sheets&Objects: make remove button work without complaints again
Not every widget is to be found from the builder, ask the original parent widget as a fallback for e.g. "wrapbox_left"
app/sheets.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/sheets.c b/app/sheets.c
index cddf24b..f8e3037 100644
--- a/app/sheets.c
+++ b/app/sheets.c
@@ -402,6 +402,10 @@ lookup_widget (GtkWidget *widget,
builder = g_object_get_data (G_OBJECT (widget), "_sheet_dialogs_builder");
found_widget = GTK_WIDGET (gtk_builder_get_object (builder, widget_name));
+ /* not everything is under control of the builder,
+ * e.g. "wrapbox_left" */
+ if (!found_widget)
+ found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget), widget_name);
if (!found_widget)
g_warning (_("Widget not found: %s"), widget_name);
return found_widget;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]