Convert transfer dialog to gtkbuilder format

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20761 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2011-06-15 16:31:03 +00:00
parent 7d46e1994c
commit b36e49ccbd
6 changed files with 186 additions and 174 deletions

View File

@ -1277,6 +1277,7 @@ AC_CONFIG_FILES(
src/gnome/ui/Makefile
src/gnome-utils/Makefile
src/gnome-utils/glade/Makefile
src/gnome-utils/gtkbuilder/Makefile
src/gnome-utils/schemas/Makefile
src/gnome-utils/test/Makefile
src/gnome-utils/ui/Makefile

View File

@ -1,4 +1,4 @@
SUBDIRS = glade schemas . test ui
SUBDIRS = glade gtkbuilder schemas . test ui
pkglib_LTLIBRARIES = libgncmod-gnome-utils.la

View File

@ -158,10 +158,22 @@ static Account *gnc_transfer_dialog_get_selected_account (XferDialog *dialog,
static void gnc_transfer_dialog_set_selected_account (XferDialog *dialog,
Account *account,
XferDirection direction);
void gnc_xfer_description_insert_cb(GtkEditable *editable,
const gchar *insert_text,
const gint insert_text_len,
gint *start_pos,
XferDialog *xferData);
gboolean gnc_xfer_description_key_press_cb( GtkEntry *entry,
GdkEventKey *event,
XferDialog *xferData );
void gnc_xfer_dialog_fetch (GtkButton *button, XferDialog *xferData);
gboolean gnc_xfer_dialog_show_inc_exp_visible_cb (Account *account,
gpointer data);
void price_amount_radio_toggled_cb(GtkToggleButton *togglebutton, gpointer data);
void gnc_xfer_dialog_response_cb (GtkDialog *dialog, gint response, gpointer data);
void gnc_xfer_dialog_close_cb(GtkDialog *dialog, gpointer data);
static gboolean gnc_xfer_dialog_show_inc_exp_visible_cb (Account *account,
gpointer data);
/** Implementations **********************************************/
@ -351,7 +363,7 @@ gnc_xfer_dialog_curr_acct_activate(XferDialog *xferData)
}
static void
void
price_amount_radio_toggled_cb(GtkToggleButton *togglebutton, gpointer data)
{
XferDialog *xferData = data;
@ -460,7 +472,7 @@ gnc_xfer_dialog_to_tree_selection_changed_cb (GtkTreeSelection *selection, gpoin
gnc_xfer_dialog_reload_quickfill(xferData);
}
static gboolean
gboolean
gnc_xfer_dialog_show_inc_exp_visible_cb (Account *account,
gpointer data)
{
@ -494,6 +506,7 @@ gnc_xfer_dialog_fill_tree_view(XferDialog *xferData,
GtkTreeSelection *selection;
gboolean use_accounting_labels;
AccountTreeFilterInfo info;
GtkBuilder *builder = g_object_get_data (G_OBJECT (xferData->dialog), "builder");
use_accounting_labels = gnc_gconf_get_bool(GCONF_GENERAL,
KEY_ACCOUNTING_LABELS, NULL);
@ -511,21 +524,21 @@ gnc_xfer_dialog_fill_tree_view(XferDialog *xferData,
*/
if (use_accounting_labels)
{
button = gnc_glade_lookup_widget (xferData->dialog,
button = GTK_WIDGET(gtk_builder_get_object (builder,
(direction == XFER_DIALOG_TO) ?
"left_show_button" : "right_show_button");
scroll_win = gnc_glade_lookup_widget (xferData->dialog,
"left_show_button" : "right_show_button"));
scroll_win = GTK_WIDGET(gtk_builder_get_object (builder,
(direction == XFER_DIALOG_TO) ?
"left_trans_window" : "right_trans_window");
"left_trans_window" : "right_trans_window"));
}
else
{
button = gnc_glade_lookup_widget (xferData->dialog,
button = GTK_WIDGET(gtk_builder_get_object (builder,
(direction == XFER_DIALOG_TO) ?
"right_show_button" : "left_show_button");
scroll_win = gnc_glade_lookup_widget (xferData->dialog,
"right_show_button" : "left_show_button"));
scroll_win = GTK_WIDGET(gtk_builder_get_object (builder,
(direction == XFER_DIALOG_TO) ?
"right_trans_window" : "left_trans_window");
"right_trans_window" : "left_trans_window"));
}
tree_view = GTK_TREE_VIEW(gnc_tree_view_account_new(FALSE));
@ -719,7 +732,7 @@ idle_select_region(gpointer data)
* cursor position accordingly. It will not set the selection but will register
* idle_select_region to do that once the program returns to its main loop.
*/
static void
void
gnc_xfer_description_insert_cb(GtkEditable *editable,
const gchar *insert_text,
const gint insert_text_len,
@ -781,7 +794,7 @@ gnc_xfer_description_insert_cb(GtkEditable *editable,
g_free(new_text);
}
static gboolean
gboolean
gnc_xfer_description_key_press_cb( GtkEntry *entry,
GdkEventKey *event,
XferDialog *xferData )
@ -1618,7 +1631,7 @@ gnc_xfer_dialog_close_cb(GtkDialog *dialog, gpointer data)
}
static void
void
gnc_xfer_dialog_fetch (GtkButton *button, XferDialog *xferData)
{
gnc_numeric rate;
@ -1674,25 +1687,23 @@ gnc_xfer_dialog_fetch (GtkButton *button, XferDialog *xferData)
static void
gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
{
GtkWidget *dialog;
GladeXML *xml;
GtkWidget *dialog;
GtkBuilder *builder;
gboolean use_accounting_labels;
use_accounting_labels = gnc_gconf_get_bool(GCONF_GENERAL,
KEY_ACCOUNTING_LABELS, NULL);
ENTER(" ");
xml = gnc_glade_xml_new ("transfer.glade", "Transfer Dialog");
builder = gtk_builder_new();
gnc_builder_add_from_file (builder, "transfer.glade", "Transfer Dialog");
dialog = glade_xml_get_widget (xml, "Transfer Dialog");
xferData->dialog = dialog;
g_object_set_data_full (G_OBJECT (dialog), "xml", xml, g_object_unref);
xferData->dialog = GTK_WIDGET(gtk_builder_get_object (builder, "Transfer Dialog"));
g_object_set_data_full (G_OBJECT (xferData->dialog), "builder", builder, g_object_unref);
/* parent */
if (parent != NULL)
gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (parent));
glade_xml_signal_autoconnect_full(xml, gnc_glade_autoconnect_full_func, xferData);
gtk_window_set_transient_for (GTK_WINDOW (xferData->dialog), GTK_WINDOW (parent));
xferData->tips = gtk_tooltips_new();
@ -1701,11 +1712,9 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
/* default to quickfilling off of the "From" account. */
xferData->quickfill = XFER_DIALOG_FROM;
xferData->transferinfo_label = glade_xml_get_widget (xml, "transferinfo-label");
xferData->transferinfo_label = GTK_WIDGET(gtk_builder_get_object (builder, "transferinfo-label"));
xferData->fetch_button = glade_xml_get_widget (xml, "fetch");
glade_xml_signal_connect_data (xml, "gnc_xfer_dialog_fetch",
G_CALLBACK (gnc_xfer_dialog_fetch), xferData);
xferData->fetch_button = GTK_WIDGET(gtk_builder_get_object (builder, "fetch"));
/* amount & date widgets */
{
@ -1715,7 +1724,7 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
GtkWidget *hbox;
amount = gnc_amount_edit_new();
hbox = glade_xml_get_widget (xml, "amount_hbox");
hbox = GTK_WIDGET(gtk_builder_get_object (builder, "amount_hbox"));
gtk_box_pack_end(GTK_BOX(hbox), amount, TRUE, TRUE, 0);
gnc_amount_edit_set_evaluate_on_enter (GNC_AMOUNT_EDIT (amount), TRUE);
xferData->amount_edit = amount;
@ -1727,7 +1736,7 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
date = gnc_date_edit_new(time (NULL), FALSE, FALSE);
gnc_date_activates_default (GNC_DATE_EDIT(date), TRUE);
hbox = glade_xml_get_widget (xml, "date_hbox");
hbox = GTK_WIDGET(gtk_builder_get_object (builder, "date_hbox"));
gtk_box_pack_end(GTK_BOX(hbox), date, TRUE, TRUE, 0);
xferData->date_entry = date;
@ -1738,19 +1747,13 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
{
GtkWidget *entry;
entry = glade_xml_get_widget (xml, "num_entry");
entry = GTK_WIDGET(gtk_builder_get_object (builder, "num_entry"));
xferData->num_entry = entry;
entry = glade_xml_get_widget (xml, "description_entry");
entry = GTK_WIDGET(gtk_builder_get_object (builder, "description_entry"));
xferData->description_entry = entry;
/* Get signals from the Description for quickfill. */
g_signal_connect (G_OBJECT (entry), "insert_text",
G_CALLBACK (gnc_xfer_description_insert_cb), xferData);
g_signal_connect (G_OBJECT (entry), "key_press_event",
G_CALLBACK (gnc_xfer_description_key_press_cb), xferData);
entry = glade_xml_get_widget (xml, "memo_entry");
entry = GTK_WIDGET(gtk_builder_get_object (builder, "memo_entry"));
xferData->memo_entry = entry;
}
@ -1766,10 +1769,10 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
see comment in function gnc_xfer_dialog_fill_tree_table */
if (use_accounting_labels)
{
label = glade_xml_get_widget (xml, "right_trans_label");
label = GTK_WIDGET(gtk_builder_get_object (builder, "right_trans_label"));
xferData->from_transfer_label = label;
label = glade_xml_get_widget (xml, "left_trans_label");
label = GTK_WIDGET(gtk_builder_get_object (builder, "left_trans_label"));
xferData->to_transfer_label = label;
text = g_strconcat ("<b>", _("Credit Account"), "</b>", NULL);
@ -1780,18 +1783,18 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
gtk_label_set_markup (GTK_LABEL (xferData->to_transfer_label), text);
g_free (text);
label = glade_xml_get_widget (xml, "right_currency_label");
label = GTK_WIDGET(gtk_builder_get_object (builder, "right_currency_label"));
xferData->from_currency_label = label;
label = glade_xml_get_widget (xml, "left_currency_label");
label = GTK_WIDGET(gtk_builder_get_object (builder, "left_currency_label"));
xferData->to_currency_label = label;
}
else
{
label = glade_xml_get_widget (xml, "left_trans_label");
label = GTK_WIDGET(gtk_builder_get_object (builder, "left_trans_label"));
xferData->from_transfer_label = label;
label = glade_xml_get_widget (xml, "right_trans_label");
label = GTK_WIDGET(gtk_builder_get_object (builder, "right_trans_label"));
xferData->to_transfer_label = label;
text = g_strconcat ("<b>", _("Transfer From"), "</b>", NULL);
@ -1801,17 +1804,17 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
text = g_strconcat ("<b>", _("Transfer To"), "</b>", NULL);
gtk_label_set_markup (GTK_LABEL (xferData->to_transfer_label), text);
label = glade_xml_get_widget (xml, "left_currency_label");
label = GTK_WIDGET(gtk_builder_get_object (builder, "left_currency_label"));
xferData->from_currency_label = label;
label = glade_xml_get_widget (xml, "right_currency_label");
label = GTK_WIDGET(gtk_builder_get_object (builder, "right_currency_label"));
xferData->to_currency_label = label;
}
label = glade_xml_get_widget (xml, "conv_forward");
label = GTK_WIDGET(gtk_builder_get_object (builder, "conv_forward"));
xferData->conv_forward = label;
label = glade_xml_get_widget (xml, "conv_reverse");
label = GTK_WIDGET(gtk_builder_get_object (builder, "conv_reverse"));
xferData->conv_reverse = label;
}
@ -1823,13 +1826,13 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
GtkWidget *hbox;
GtkWidget *button;
table = glade_xml_get_widget (xml, "curr_transfer_table");
table = GTK_WIDGET(gtk_builder_get_object (builder, "curr_transfer_table"));
xferData->curr_xfer_table = table;
edit = gnc_amount_edit_new();
gnc_amount_edit_set_print_info(GNC_AMOUNT_EDIT(edit),
gnc_default_print_info (FALSE));
hbox = glade_xml_get_widget (xml, "price_hbox");
hbox = GTK_WIDGET(gtk_builder_get_object (builder, "price_hbox"));
gtk_box_pack_start(GTK_BOX(hbox), edit, TRUE, TRUE, 0);
xferData->price_edit = edit;
entry = gnc_amount_edit_gtk_entry (GNC_AMOUNT_EDIT (edit));
@ -1838,7 +1841,7 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
gtk_entry_set_activates_default(GTK_ENTRY (entry), TRUE);
edit = gnc_amount_edit_new();
hbox = glade_xml_get_widget (xml, "right_amount_hbox");
hbox = GTK_WIDGET(gtk_builder_get_object (builder, "right_amount_hbox"));
gtk_box_pack_start(GTK_BOX(hbox), edit, TRUE, TRUE, 0);
xferData->to_amount_edit = edit;
entry = gnc_amount_edit_gtk_entry (GNC_AMOUNT_EDIT (edit));
@ -1846,16 +1849,12 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
G_CALLBACK (gnc_xfer_to_amount_update_cb), xferData);
gtk_entry_set_activates_default(GTK_ENTRY(entry), TRUE);
button = glade_xml_get_widget (xml, "price_radio");
button = GTK_WIDGET(gtk_builder_get_object (builder, "price_radio"));
xferData->price_radio = button;
g_signal_connect (G_OBJECT (xferData->price_radio), "toggled",
G_CALLBACK (price_amount_radio_toggled_cb), xferData);
button = glade_xml_get_widget (xml, "amount_radio");
button = GTK_WIDGET(gtk_builder_get_object (builder, "amount_radio"));
xferData->amount_radio = button;
g_signal_connect(G_OBJECT(xferData->amount_radio), "toggled",
G_CALLBACK(price_amount_radio_toggled_cb),
xferData);
if (use_accounting_labels)
{
gtk_label_set_text(GTK_LABEL(GTK_BIN(xferData->amount_radio)->child),
@ -1867,7 +1866,9 @@ gnc_xfer_dialog_create(GtkWidget *parent, XferDialog *xferData)
_("To Amount:"));
}
}
gnc_restore_window_size (GCONF_SECTION, GTK_WINDOW (dialog));
gtk_builder_connect_signals(builder, xferData);
gnc_restore_window_size (GCONF_SECTION, GTK_WINDOW (xferData->dialog));
LEAVE(" ");
}
@ -2038,9 +2039,10 @@ void gnc_xfer_dialog_add_user_specified_button( XferDialog *xferData,
{
if ( xferData && label && callback )
{
GtkWidget *button = gtk_button_new_with_label( label );
GtkWidget *box = gnc_glade_lookup_widget (xferData->dialog,
"transfermain-vbox" );
GtkBuilder *builder = g_object_get_data (G_OBJECT (xferData->dialog), "builder");
GtkWidget *button = gtk_button_new_with_label( label );
GtkWidget *box = GTK_WIDGET(gtk_builder_get_object (builder,
"transfermain-vbox" ));
gtk_box_pack_end( GTK_BOX(box), button, FALSE, FALSE, 0 );
g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (callback), user_data);
gtk_widget_show( button );

View File

@ -13,7 +13,6 @@ glade_DATA = \
gnc-date-format.glade \
gnc-gui-query.glade \
preferences.glade \
totd.glade \
transfer.glade
totd.glade
EXTRA_DIST = $(glade_DATA)

View File

@ -0,0 +1,5 @@
gtkbuilderdir = $(GNC_GTKBUILDER_DIR)
gtkbuilder_DATA = \
transfer.glade
EXTRA_DIST = $(gtkbuilder_DATA)

View File

@ -1,37 +1,36 @@
<?xml version="1.0"?>
<glade-interface>
<!-- interface-requires gtk+ 2.10 -->
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual -->
<widget class="GtkDialog" id="Transfer Dialog">
<object class="GtkDialog" id="Transfer Dialog">
<property name="border_width">5</property>
<property name="title" translatable="yes">Transfer Funds</property>
<property name="type_hint">dialog</property>
<property name="has_separator">False</property>
<signal name="response" handler="gnc_xfer_dialog_response_cb"/>
<child internal-child="vbox">
<widget class="GtkVBox" id="vbox">
<object class="GtkVBox" id="vbox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child>
<widget class="GtkVBox" id="transfermain-vbox">
<object class="GtkVBox" id="transfermain-vbox">
<property name="visible">True</property>
<property name="border_width">5</property>
<property name="orientation">vertical</property>
<property name="spacing">18</property>
<child>
<widget class="GtkTable" id="table">
<object class="GtkTable" id="table">
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">2</property>
<property name="row_spacing">6</property>
<child>
<widget class="GtkLabel" id="transferinfo-label">
<object class="GtkLabel" id="transferinfo-label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Basic Information&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
</object>
<packing>
<property name="right_attach">2</property>
<property name="x_options">GTK_FILL</property>
@ -39,11 +38,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label">
<object class="GtkLabel" id="label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label"> </property>
</widget>
</object>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
@ -52,30 +51,30 @@
</packing>
</child>
<child>
<widget class="GtkTable" id="table1">
<object class="GtkTable" id="table1">
<property name="visible">True</property>
<property name="n_rows">5</property>
<property name="n_columns">2</property>
<property name="column_spacing">12</property>
<property name="row_spacing">6</property>
<child>
<widget class="GtkLabel" id="label1">
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Amount:</property>
</widget>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="amount_hbox">
<object class="GtkHBox" id="amount_hbox">
<property name="visible">True</property>
<child>
<placeholder/>
</child>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -83,11 +82,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label2">
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Date:</property>
</widget>
</object>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
@ -96,13 +95,13 @@
</packing>
</child>
<child>
<widget class="GtkHBox" id="date_hbox">
<object class="GtkHBox" id="date_hbox">
<property name="visible">True</property>
<property name="spacing">3</property>
<child>
<placeholder/>
</child>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -113,11 +112,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label3">
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Num:</property>
</widget>
</object>
<packing>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
@ -126,11 +125,11 @@
</packing>
</child>
<child>
<widget class="GtkEntry" id="num_entry">
<object class="GtkEntry" id="num_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -140,11 +139,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label4">
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Description:</property>
</widget>
</object>
<packing>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
@ -153,11 +152,13 @@
</packing>
</child>
<child>
<widget class="GtkEntry" id="description_entry">
<object class="GtkEntry" id="description_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
</widget>
<signal name="key_press_event" handler="gnc_xfer_description_key_press_cb"/>
<signal name="insert_text" handler="gnc_xfer_description_insert_cb"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -167,11 +168,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label5">
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Memo:</property>
</widget>
</object>
<packing>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
@ -180,11 +181,11 @@
</packing>
</child>
<child>
<widget class="GtkEntry" id="memo_entry">
<object class="GtkEntry" id="memo_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -193,7 +194,7 @@
<property name="y_options"></property>
</packing>
</child>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -202,24 +203,24 @@
<property name="y_options">GTK_FILL</property>
</packing>
</child>
</widget>
</object>
<packing>
<property name="expand">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<widget class="GtkTable" id="table2">
<object class="GtkTable" id="table2">
<property name="visible">True</property>
<property name="n_rows">4</property>
<property name="n_columns">5</property>
<property name="row_spacing">6</property>
<child>
<widget class="GtkLabel" id="label6">
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label"> </property>
</widget>
</object>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">4</property>
@ -228,12 +229,12 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="left_trans_label">
<object class="GtkLabel" id="left_trans_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Transfer From&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
</object>
<packing>
<property name="right_attach">2</property>
<property name="x_options">GTK_FILL</property>
@ -241,32 +242,32 @@
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox">
<object class="GtkHBox" id="hbox">
<property name="visible">True</property>
<property name="spacing">12</property>
<child>
<widget class="GtkLabel" id="label7">
<object class="GtkLabel" id="label7">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Currency:</property>
<property name="justify">center</property>
</widget>
</object>
<packing>
<property name="expand">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="left_currency_label">
<object class="GtkLabel" id="left_currency_label">
<property name="visible">True</property>
<property name="xalign">1</property>
<property name="justify">center</property>
</widget>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -277,14 +278,14 @@
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="left_show_button">
<object class="GtkCheckButton" id="left_show_button">
<property name="label" translatable="yes">Show Income/Expense</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -295,11 +296,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label8">
<object class="GtkLabel" id="label8">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label"> </property>
</widget>
</object>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
@ -309,12 +310,12 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="right_trans_label">
<object class="GtkLabel" id="right_trans_label">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Transfer To&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
</object>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">5</property>
@ -323,11 +324,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label9">
<object class="GtkLabel" id="label9">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label"> </property>
</widget>
</object>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
@ -338,32 +339,32 @@
</packing>
</child>
<child>
<widget class="GtkHBox" id="hbox1">
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<property name="spacing">12</property>
<child>
<widget class="GtkLabel" id="label10">
<object class="GtkLabel" id="label10">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Currency:</property>
<property name="justify">center</property>
</widget>
</object>
<packing>
<property name="expand">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<widget class="GtkLabel" id="right_currency_label">
<object class="GtkLabel" id="right_currency_label">
<property name="visible">True</property>
<property name="xalign">1</property>
<property name="justify">center</property>
</widget>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</widget>
</object>
<packing>
<property name="left_attach">4</property>
<property name="right_attach">5</property>
@ -374,14 +375,14 @@
</packing>
</child>
<child>
<widget class="GtkCheckButton" id="right_show_button">
<object class="GtkCheckButton" id="right_show_button">
<property name="label" translatable="yes">Show Income/Expense</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
</widget>
</object>
<packing>
<property name="left_attach">4</property>
<property name="right_attach">5</property>
@ -392,7 +393,7 @@
</packing>
</child>
<child>
<widget class="GtkScrolledWindow" id="right_trans_window">
<object class="GtkScrolledWindow" id="right_trans_window">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">automatic</property>
@ -401,7 +402,7 @@
<child>
<placeholder/>
</child>
</widget>
</object>
<packing>
<property name="left_attach">4</property>
<property name="right_attach">5</property>
@ -410,7 +411,7 @@
</packing>
</child>
<child>
<widget class="GtkScrolledWindow" id="left_trans_window">
<object class="GtkScrolledWindow" id="left_trans_window">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">automatic</property>
@ -419,7 +420,7 @@
<child>
<placeholder/>
</child>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -427,24 +428,24 @@
<property name="bottom_attach">2</property>
</packing>
</child>
</widget>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
<child>
<widget class="GtkTable" id="curr_transfer_table">
<object class="GtkTable" id="curr_transfer_table">
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">2</property>
<property name="row_spacing">6</property>
<child>
<widget class="GtkLabel" id="label11">
<object class="GtkLabel" id="label11">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">&lt;b&gt;Currency Transfer&lt;/b&gt;</property>
<property name="use_markup">True</property>
</widget>
</object>
<packing>
<property name="right_attach">2</property>
<property name="x_options">GTK_FILL</property>
@ -452,11 +453,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label12">
<object class="GtkLabel" id="label12">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label"> </property>
</widget>
</object>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
@ -465,14 +466,14 @@
</packing>
</child>
<child>
<widget class="GtkTable" id="table3">
<object class="GtkTable" id="table3">
<property name="visible">True</property>
<property name="n_rows">2</property>
<property name="n_columns">4</property>
<property name="column_spacing">12</property>
<property name="row_spacing">6</property>
<child>
<widget class="GtkRadioButton" id="price_radio">
<object class="GtkRadioButton" id="price_radio">
<property name="label" translatable="yes">Exchange Rate:</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@ -480,19 +481,19 @@
<property name="use_underline">True</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
</widget>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkHBox" id="price_hbox">
<object class="GtkHBox" id="price_hbox">
<property name="visible">True</property>
<child>
<placeholder/>
</child>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -500,11 +501,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="conv_forward">
<object class="GtkLabel" id="conv_forward">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="justify">center</property>
</widget>
</object>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
@ -513,7 +514,7 @@
</packing>
</child>
<child>
<widget class="GtkRadioButton" id="amount_radio">
<object class="GtkRadioButton" id="amount_radio">
<property name="label" translatable="yes">To Amount:</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@ -521,7 +522,8 @@
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">price_radio</property>
</widget>
<signal name="toggled" handler="price_amount_radio_toggled_cb"/>
</object>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
@ -530,12 +532,12 @@
</packing>
</child>
<child>
<widget class="GtkHBox" id="right_amount_hbox">
<object class="GtkHBox" id="right_amount_hbox">
<property name="visible">True</property>
<child>
<placeholder/>
</child>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -546,11 +548,11 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="conv_reverse">
<object class="GtkLabel" id="conv_reverse">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="justify">center</property>
</widget>
</object>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
@ -561,25 +563,26 @@
</packing>
</child>
<child>
<widget class="GtkButton" id="fetch">
<object class="GtkButton" id="fetch">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">False</property>
<signal name="clicked" handler="gnc_xfer_dialog_fetch"/>
<child>
<widget class="GtkAlignment" id="alignment1">
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="xscale">0</property>
<property name="yscale">0</property>
<child>
<widget class="GtkHBox" id="hbox2">
<object class="GtkHBox" id="hbox2">
<property name="visible">True</property>
<property name="spacing">2</property>
<child>
<widget class="GtkImage" id="image1">
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="stock">gtk-connect</property>
</widget>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@ -587,22 +590,22 @@
</packing>
</child>
<child>
<widget class="GtkLabel" id="label13">
<object class="GtkLabel" id="label13">
<property name="visible">True</property>
<property name="label" translatable="yes">_Fetch Rate</property>
<property name="use_underline">True</property>
</widget>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</widget>
</object>
</child>
</widget>
</object>
</child>
</widget>
</object>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
@ -613,7 +616,7 @@
<child>
<placeholder/>
</child>
</widget>
</object>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
@ -622,31 +625,30 @@
<property name="y_options">GTK_FILL</property>
</packing>
</child>
</widget>
</object>
<packing>
<property name="expand">False</property>
<property name="position">2</property>
</packing>
</child>
</widget>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
<child internal-child="action_area">
<widget class="GtkHButtonBox" id="hbbox">
<object class="GtkHButtonBox" id="hbbox">
<property name="visible">True</property>
<property name="layout_style">end</property>
<child>
<widget class="GtkButton" id="button">
<object class="GtkButton" id="button">
<property name="label">gtk-cancel</property>
<property name="response_id">-6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
</widget>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@ -654,30 +656,33 @@
</packing>
</child>
<child>
<widget class="GtkButton" id="button1">
<object class="GtkButton" id="button1">
<property name="label">gtk-ok</property>
<property name="response_id">-5</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">False</property>
<property name="use_stock">True</property>
</widget>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</widget>
</object>
<packing>
<property name="expand">False</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
</widget>
</object>
</child>
</widget>
</glade-interface>
<action-widgets>
<action-widget response="-6">button</action-widget>
<action-widget response="-5">button1</action-widget>
</action-widgets>
</object>
</interface>