Restore some widget names that were lost in r9938 but still used by

dialog-transfer.c.   Added a warning to find more bugs like this one.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13607 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-03-12 03:38:27 +00:00
parent 5d58c5ce49
commit 37d086196d
2 changed files with 8 additions and 3 deletions

View File

@ -839,13 +839,18 @@ GtkWidget *
gnc_glade_lookup_widget (GtkWidget *widget, const char *name)
{
GladeXML *xml;
GtkWidget *wid;
if (!widget || !name) return NULL;
xml = glade_get_widget_tree (widget);
if (!xml) return NULL;
wid = glade_xml_get_widget (xml, name);
if (!wid)
PWARN("I know nothing of this '%s' whom you seek.", name);
return glade_xml_get_widget (xml, name);
return wid;
}
/*

View File

@ -668,7 +668,7 @@
</child>
<child>
<widget class="GtkScrolledWindow" id="swindow">
<widget class="GtkScrolledWindow" id="right_trans_window">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
@ -704,7 +704,7 @@
</child>
<child>
<widget class="GtkScrolledWindow" id="swindow">
<widget class="GtkScrolledWindow" id="left_trans_window">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>