mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2001-06-12 Dave Peticolas <dave@krondo.com>
* src/gnome/glade/Makefile.am: new file * src/gnome/glade/commodity.glade: new file. glade file for commodity dialog * src/gnome/dialog-commodities.c: use libglade * src/gnome/dialog-utils.c (gnc_glade_xml_new): new func (gnc_glade_xml_new_widget): new func * rpm/gnucash.spec.in: add glade dir * configure.in: move libglade check to glade section. add configured glade file dir. * src/gnome/Makefile.am: add glade flags & glade dir * src/Makefile.am: add glade libs git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4637 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2088c4a622
commit
b5c00276c5
19
ChangeLog
19
ChangeLog
@ -1,5 +1,24 @@
|
|||||||
2001-06-12 Dave Peticolas <dave@krondo.com>
|
2001-06-12 Dave Peticolas <dave@krondo.com>
|
||||||
|
|
||||||
|
* src/gnome/glade/Makefile.am: new file
|
||||||
|
|
||||||
|
* src/gnome/glade/commodity.glade: new file. glade file for
|
||||||
|
commodity dialog
|
||||||
|
|
||||||
|
* src/gnome/dialog-commodities.c: use libglade
|
||||||
|
|
||||||
|
* src/gnome/dialog-utils.c (gnc_glade_xml_new): new func
|
||||||
|
(gnc_glade_xml_new_widget): new func
|
||||||
|
|
||||||
|
* rpm/gnucash.spec.in: add glade dir
|
||||||
|
|
||||||
|
* configure.in: move libglade check to glade section.
|
||||||
|
add configured glade file dir.
|
||||||
|
|
||||||
|
* src/gnome/Makefile.am: add glade flags & glade dir
|
||||||
|
|
||||||
|
* src/Makefile.am: add glade libs
|
||||||
|
|
||||||
* src/scm/report/account-piecharts.scm: same as below
|
* src/scm/report/account-piecharts.scm: same as below
|
||||||
|
|
||||||
* src/scm/report/category-barchart.scm: remove hint text
|
* src/scm/report/category-barchart.scm: remove hint text
|
||||||
|
21
configure.in
21
configure.in
@ -121,6 +121,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
GNC_ACCOUNTS_DIR=${GNC_SHAREDIR}/accounts
|
GNC_ACCOUNTS_DIR=${GNC_SHAREDIR}/accounts
|
||||||
|
GNC_GLADE_DIR=${GNC_SHAREDIR}/glade
|
||||||
GNC_PIXMAP_DIR='${datadir}/pixmaps/gnucash'
|
GNC_PIXMAP_DIR='${datadir}/pixmaps/gnucash'
|
||||||
|
|
||||||
AC_SUBST(GNC_CONFIGDIR)
|
AC_SUBST(GNC_CONFIGDIR)
|
||||||
@ -129,6 +130,7 @@ AC_SUBST(GNC_SHAREDIR)
|
|||||||
AC_SUBST(GNC_SCM_INSTALL_DIR)
|
AC_SUBST(GNC_SCM_INSTALL_DIR)
|
||||||
AC_SUBST(GNC_DOC_INSTALL_DIR)
|
AC_SUBST(GNC_DOC_INSTALL_DIR)
|
||||||
AC_SUBST(GNC_ACCOUNTS_DIR)
|
AC_SUBST(GNC_ACCOUNTS_DIR)
|
||||||
|
AC_SUBST(GNC_GLADE_DIR)
|
||||||
AC_SUBST(GNC_PIXMAP_DIR)
|
AC_SUBST(GNC_PIXMAP_DIR)
|
||||||
|
|
||||||
# We should always see these errors...
|
# We should always see these errors...
|
||||||
@ -277,6 +279,19 @@ fi
|
|||||||
AC_SUBST(GLADE)
|
AC_SUBST(GLADE)
|
||||||
|
|
||||||
|
|
||||||
|
GLADE_LIBS=`$GNOME_CONFIG --libs libglade`
|
||||||
|
GLADE_CFLAGS=`$GNOME_CONFIG --cflags libglade`
|
||||||
|
|
||||||
|
# check for glade libs
|
||||||
|
AC_CHECK_LIB(glade, glade_init,
|
||||||
|
GNOMEBUILDLIBS="${GNOMEBUILDLIBS} glade",
|
||||||
|
AC_MSG_ERROR([Cannot find libglade. See the README for more info.]),
|
||||||
|
$GLADE_LIBS)
|
||||||
|
|
||||||
|
AC_SUBST(GLADE_LIBS)
|
||||||
|
AC_SUBST(GLADE_CFLAGS)
|
||||||
|
|
||||||
|
|
||||||
### --------------------------------------------------------------------------
|
### --------------------------------------------------------------------------
|
||||||
### Check for perl
|
### Check for perl
|
||||||
|
|
||||||
@ -455,11 +470,6 @@ AC_CHECK_LIB(oaf, main, true,
|
|||||||
[AC_MSG_ERROR([liboaf development files not found. Guppi requires them.])],
|
[AC_MSG_ERROR([liboaf development files not found. Guppi requires them.])],
|
||||||
`$GNOME_CONFIG --libs oaf`)
|
`$GNOME_CONFIG --libs oaf`)
|
||||||
|
|
||||||
AC_CHECK_LIB(glade, main, true,
|
|
||||||
[AC_MSG_ERROR([libglade development files not found. Guppi requires them.])]
|
|
||||||
,
|
|
||||||
`$GNOME_CONFIG --libs libglade`)
|
|
||||||
|
|
||||||
## guppi itself.
|
## guppi itself.
|
||||||
|
|
||||||
GUPPI_LIBS=`$GNOME_CONFIG --libs libguppi`
|
GUPPI_LIBS=`$GNOME_CONFIG --libs libguppi`
|
||||||
@ -622,6 +632,7 @@ AC_OUTPUT(
|
|||||||
src/experimental/ofx/explore/Makefile
|
src/experimental/ofx/explore/Makefile
|
||||||
src/experimental/ofx/parser/Makefile
|
src/experimental/ofx/parser/Makefile
|
||||||
src/gnome/Makefile
|
src/gnome/Makefile
|
||||||
|
src/gnome/glade/Makefile
|
||||||
src/guile/Makefile
|
src/guile/Makefile
|
||||||
src/optional/Makefile
|
src/optional/Makefile
|
||||||
src/pixmaps/Makefile
|
src/pixmaps/Makefile
|
||||||
|
@ -28,6 +28,7 @@ src/gnome/druid-qif-import.c
|
|||||||
src/gnome/druid-stock-split.c
|
src/gnome/druid-stock-split.c
|
||||||
src/gnome/glade-gnc-dialogs.c
|
src/gnome/glade-gnc-dialogs.c
|
||||||
src/gnome/glade-support.c
|
src/gnome/glade-support.c
|
||||||
|
src/gnome/glade/commodity_strings.c
|
||||||
src/gnome/gnc-commodity-edit.c
|
src/gnome/gnc-commodity-edit.c
|
||||||
src/gnome/gnc-datedelta.c
|
src/gnome/gnc-datedelta.c
|
||||||
src/gnome/gnc-dateedit.c
|
src/gnome/gnc-dateedit.c
|
||||||
|
@ -46,6 +46,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
/usr/lib/libgncengine.*
|
/usr/lib/libgncengine.*
|
||||||
/usr/share/gnucash/accounts
|
/usr/share/gnucash/accounts
|
||||||
/usr/share/gnucash/doc
|
/usr/share/gnucash/doc
|
||||||
|
/usr/share/gnucash/glade
|
||||||
/usr/share/gnucash/guile-modules
|
/usr/share/gnucash/guile-modules
|
||||||
/usr/share/gnucash/html
|
/usr/share/gnucash/html
|
||||||
/usr/share/gnucash/scm
|
/usr/share/gnucash/scm
|
||||||
|
@ -37,6 +37,7 @@ LDADD = \
|
|||||||
${GUILE_LIBS} \
|
${GUILE_LIBS} \
|
||||||
${GTKHTML_LIBS} \
|
${GTKHTML_LIBS} \
|
||||||
${GHTTP_LIBS} \
|
${GHTTP_LIBS} \
|
||||||
|
${GLADE_LIBS} \
|
||||||
${GUPPI_LIBS} \
|
${GUPPI_LIBS} \
|
||||||
${DB_LIBS} \
|
${DB_LIBS} \
|
||||||
${INTLLIBS} \
|
${INTLLIBS} \
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
SUBDIRS = glade
|
||||||
|
|
||||||
noinst_LIBRARIES = libgncgnome.a
|
noinst_LIBRARIES = libgncgnome.a
|
||||||
|
|
||||||
@ -147,6 +148,7 @@ CFLAGS = @CFLAGS@ \
|
|||||||
${GNOME_PRINT_CFLAGS} \
|
${GNOME_PRINT_CFLAGS} \
|
||||||
${GTKHTML_CFLAGS} \
|
${GTKHTML_CFLAGS} \
|
||||||
${GHTTP_CFLAGS} \
|
${GHTTP_CFLAGS} \
|
||||||
|
${GLADE_CFLAGS} \
|
||||||
${GUPPI_CFLAGS}
|
${GUPPI_CFLAGS}
|
||||||
|
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
@ -179,8 +181,9 @@ gnucash.keys: gnucash.keys.in
|
|||||||
gnc-dir.h: gnc-dir.h.in
|
gnc-dir.h: gnc-dir.h.in
|
||||||
rm -f $@.tmp
|
rm -f $@.tmp
|
||||||
sed < $@.in > $@.tmp \
|
sed < $@.in > $@.tmp \
|
||||||
-e 's:@-GNC_PIXMAP_DIR-@:${GNC_PIXMAP_DIR}:g' \
|
-e 's:@-GNC_ACCOUNTS_DIR-@:${GNC_ACCOUNTS_DIR}:g' \
|
||||||
-e 's:@-GNC_ACCOUNTS_DIR-@:${GNC_ACCOUNTS_DIR}:g'
|
-e 's:@-GNC_GLADE_DIR-@:${GNC_GLADE_DIR}:g' \
|
||||||
|
-e 's:@-GNC_PIXMAP_DIR-@:${GNC_PIXMAP_DIR}:g'
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
BUILT_SOURCES += gnc-dir.h
|
BUILT_SOURCES += gnc-dir.h
|
||||||
|
|
||||||
|
@ -373,8 +373,11 @@ static void
|
|||||||
gnc_commodities_dialog_create (GtkWidget * parent, CommoditiesDialog *cd)
|
gnc_commodities_dialog_create (GtkWidget * parent, CommoditiesDialog *cd)
|
||||||
{
|
{
|
||||||
GtkWidget *dialog;
|
GtkWidget *dialog;
|
||||||
|
GladeXML *xml;
|
||||||
|
|
||||||
dialog = create_Commodities_Dialog ();
|
xml = gnc_glade_xml_new ("commodity.glade", "Commodities Dialog");
|
||||||
|
|
||||||
|
dialog = glade_xml_get_widget (xml, "Commodities Dialog");
|
||||||
cd->dialog = dialog;
|
cd->dialog = dialog;
|
||||||
|
|
||||||
gnome_dialog_button_connect (GNOME_DIALOG (dialog), 0,
|
gnome_dialog_button_connect (GNOME_DIALOG (dialog), 0,
|
||||||
@ -394,7 +397,7 @@ gnc_commodities_dialog_create (GtkWidget * parent, CommoditiesDialog *cd)
|
|||||||
{
|
{
|
||||||
GtkWidget *list;
|
GtkWidget *list;
|
||||||
|
|
||||||
list = lookup_widget (dialog, "commodity_list");
|
list = glade_xml_get_widget (xml, "commodity_list");
|
||||||
cd->commodity_list = list;
|
cd->commodity_list = list;
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT(list), "select_row",
|
gtk_signal_connect (GTK_OBJECT(list), "select_row",
|
||||||
@ -408,24 +411,24 @@ gnc_commodities_dialog_create (GtkWidget * parent, CommoditiesDialog *cd)
|
|||||||
{
|
{
|
||||||
GtkWidget *button;
|
GtkWidget *button;
|
||||||
|
|
||||||
button = lookup_widget (dialog, "edit_button");
|
button = glade_xml_get_widget (xml, "edit_button");
|
||||||
cd->edit_button = button;
|
cd->edit_button = button;
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||||
GTK_SIGNAL_FUNC (edit_clicked), cd);
|
GTK_SIGNAL_FUNC (edit_clicked), cd);
|
||||||
|
|
||||||
button = lookup_widget (dialog, "remove_button");
|
button = glade_xml_get_widget (xml, "remove_button");
|
||||||
cd->remove_button = button;
|
cd->remove_button = button;
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||||
GTK_SIGNAL_FUNC (remove_clicked), cd);
|
GTK_SIGNAL_FUNC (remove_clicked), cd);
|
||||||
|
|
||||||
button = lookup_widget (dialog, "add_button");
|
button = glade_xml_get_widget (xml, "add_button");
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||||
GTK_SIGNAL_FUNC (add_clicked), cd);
|
GTK_SIGNAL_FUNC (add_clicked), cd);
|
||||||
|
|
||||||
button = lookup_widget (dialog, "show_currencies_button");
|
button = glade_xml_get_widget (xml, "show_currencies_button");
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (button), "toggled",
|
gtk_signal_connect (GTK_OBJECT (button), "toggled",
|
||||||
GTK_SIGNAL_FUNC (show_currencies_toggled), cd);
|
GTK_SIGNAL_FUNC (show_currencies_toggled), cd);
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <glade/glade.h>
|
||||||
#include <gnome.h>
|
#include <gnome.h>
|
||||||
|
|
||||||
#include "account-tree.h"
|
#include "account-tree.h"
|
||||||
@ -844,3 +845,30 @@ gnc_clist_columns_autosize (GtkCList *list)
|
|||||||
|
|
||||||
gtk_clist_columns_autosize (list);
|
gtk_clist_columns_autosize (list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static gboolean glade_inited = FALSE;
|
||||||
|
|
||||||
|
GladeXML *
|
||||||
|
gnc_glade_xml_new (const char *filename, const char *root)
|
||||||
|
{
|
||||||
|
GladeXML *xml;
|
||||||
|
char *fname;
|
||||||
|
|
||||||
|
g_return_val_if_fail (filename != NULL, NULL);
|
||||||
|
g_return_val_if_fail (root != NULL, NULL);
|
||||||
|
|
||||||
|
if (!glade_inited)
|
||||||
|
{
|
||||||
|
glade_gnome_init ();
|
||||||
|
glade_inited = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
fname = g_strconcat (GNC_GLADE_DIR, "/", filename, NULL);
|
||||||
|
|
||||||
|
xml = glade_xml_new (fname, root);
|
||||||
|
|
||||||
|
g_free (fname);
|
||||||
|
|
||||||
|
return xml;
|
||||||
|
}
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#ifndef __DIALOG_UTILS_H__
|
#ifndef __DIALOG_UTILS_H__
|
||||||
#define __DIALOG_UTILS_H__
|
#define __DIALOG_UTILS_H__
|
||||||
|
|
||||||
|
#include <glade/glade.h>
|
||||||
#include <gnome.h>
|
#include <gnome.h>
|
||||||
|
|
||||||
#include "Account.h"
|
#include "Account.h"
|
||||||
@ -88,5 +89,6 @@ void gnc_clist_set_check (GtkCList *list, int row, int col, gboolean checked);
|
|||||||
* also takes into account the column titles. */
|
* also takes into account the column titles. */
|
||||||
void gnc_clist_columns_autosize (GtkCList *list);
|
void gnc_clist_columns_autosize (GtkCList *list);
|
||||||
|
|
||||||
|
GladeXML * gnc_glade_xml_new (const char *filename, const char *root);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -3439,9 +3439,6 @@ create_Account_Dialog (void)
|
|||||||
GtkWidget *button63;
|
GtkWidget *button63;
|
||||||
GtkWidget *cancel_button;
|
GtkWidget *cancel_button;
|
||||||
GtkWidget *button72;
|
GtkWidget *button72;
|
||||||
GtkTooltips *tooltips;
|
|
||||||
|
|
||||||
tooltips = gtk_tooltips_new ();
|
|
||||||
|
|
||||||
Account_Dialog = gnome_dialog_new (_("New Account"), NULL);
|
Account_Dialog = gnome_dialog_new (_("New Account"), NULL);
|
||||||
gtk_object_set_data (GTK_OBJECT (Account_Dialog), "Account_Dialog", Account_Dialog);
|
gtk_object_set_data (GTK_OBJECT (Account_Dialog), "Account_Dialog", Account_Dialog);
|
||||||
@ -3840,7 +3837,6 @@ create_Account_Dialog (void)
|
|||||||
(GtkDestroyNotify) gtk_widget_unref);
|
(GtkDestroyNotify) gtk_widget_unref);
|
||||||
gtk_widget_show (opening_equity_radio);
|
gtk_widget_show (opening_equity_radio);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox120), opening_equity_radio, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox120), opening_equity_radio, FALSE, FALSE, 0);
|
||||||
gtk_tooltips_set_tip (tooltips, opening_equity_radio, _("Use an Equity account to transfer the opening balance. The Equity account will be created if it doesn't exist already."), NULL);
|
|
||||||
|
|
||||||
radiobutton8 = gtk_radio_button_new_with_label (vbox120_group, _("Select Transfer Account"));
|
radiobutton8 = gtk_radio_button_new_with_label (vbox120_group, _("Select Transfer Account"));
|
||||||
vbox120_group = gtk_radio_button_group (GTK_RADIO_BUTTON (radiobutton8));
|
vbox120_group = gtk_radio_button_group (GTK_RADIO_BUTTON (radiobutton8));
|
||||||
@ -3849,7 +3845,6 @@ create_Account_Dialog (void)
|
|||||||
(GtkDestroyNotify) gtk_widget_unref);
|
(GtkDestroyNotify) gtk_widget_unref);
|
||||||
gtk_widget_show (radiobutton8);
|
gtk_widget_show (radiobutton8);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox120), radiobutton8, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox120), radiobutton8, FALSE, FALSE, 0);
|
||||||
gtk_tooltips_set_tip (tooltips, radiobutton8, _("Use the account select below to transfer the opening balance."), NULL);
|
|
||||||
|
|
||||||
transfer_account_frame = gtk_frame_new (_("Transfer Account"));
|
transfer_account_frame = gtk_frame_new (_("Transfer Account"));
|
||||||
gtk_widget_ref (transfer_account_frame);
|
gtk_widget_ref (transfer_account_frame);
|
||||||
@ -3906,8 +3901,6 @@ create_Account_Dialog (void)
|
|||||||
gtk_widget_show (button72);
|
gtk_widget_show (button72);
|
||||||
GTK_WIDGET_SET_FLAGS (button72, GTK_CAN_DEFAULT);
|
GTK_WIDGET_SET_FLAGS (button72, GTK_CAN_DEFAULT);
|
||||||
|
|
||||||
gtk_object_set_data (GTK_OBJECT (Account_Dialog), "tooltips", tooltips);
|
|
||||||
|
|
||||||
return Account_Dialog;
|
return Account_Dialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7727,178 +7720,3 @@ create_Price_Dialog (void)
|
|||||||
return Price_Dialog;
|
return Price_Dialog;
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkWidget*
|
|
||||||
create_Commodities_Dialog (void)
|
|
||||||
{
|
|
||||||
GtkWidget *Commodities_Dialog;
|
|
||||||
GtkWidget *vbox127;
|
|
||||||
GtkWidget *hbox107;
|
|
||||||
GtkWidget *frame51;
|
|
||||||
GtkWidget *vbox128;
|
|
||||||
GtkWidget *show_currencies_button;
|
|
||||||
GtkWidget *scrolledwindow33;
|
|
||||||
GtkWidget *commodity_list;
|
|
||||||
GtkWidget *label8477426;
|
|
||||||
GtkWidget *label8477427;
|
|
||||||
GtkWidget *label8477428;
|
|
||||||
GtkWidget *label8477429;
|
|
||||||
GtkWidget *label8477430;
|
|
||||||
GtkWidget *hbuttonbox7;
|
|
||||||
GtkWidget *add_button;
|
|
||||||
GtkWidget *remove_button;
|
|
||||||
GtkWidget *edit_button;
|
|
||||||
GtkWidget *hbuttonbox6;
|
|
||||||
GtkWidget *close_button;
|
|
||||||
GtkTooltips *tooltips;
|
|
||||||
|
|
||||||
tooltips = gtk_tooltips_new ();
|
|
||||||
|
|
||||||
Commodities_Dialog = gnome_dialog_new (_("Commodities"), NULL);
|
|
||||||
gtk_object_set_data (GTK_OBJECT (Commodities_Dialog), "Commodities_Dialog", Commodities_Dialog);
|
|
||||||
gtk_window_set_policy (GTK_WINDOW (Commodities_Dialog), TRUE, TRUE, FALSE);
|
|
||||||
|
|
||||||
vbox127 = GNOME_DIALOG (Commodities_Dialog)->vbox;
|
|
||||||
gtk_object_set_data (GTK_OBJECT (Commodities_Dialog), "vbox127", vbox127);
|
|
||||||
gtk_widget_show (vbox127);
|
|
||||||
|
|
||||||
hbox107 = gtk_hbox_new (FALSE, 2);
|
|
||||||
gtk_widget_ref (hbox107);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "hbox107", hbox107,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (hbox107);
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox127), hbox107, TRUE, TRUE, 0);
|
|
||||||
|
|
||||||
frame51 = gtk_frame_new (_("Commodities"));
|
|
||||||
gtk_widget_ref (frame51);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "frame51", frame51,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (frame51);
|
|
||||||
gtk_box_pack_start (GTK_BOX (hbox107), frame51, TRUE, TRUE, 0);
|
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (frame51), 3);
|
|
||||||
|
|
||||||
vbox128 = gtk_vbox_new (FALSE, 0);
|
|
||||||
gtk_widget_ref (vbox128);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "vbox128", vbox128,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (vbox128);
|
|
||||||
gtk_container_add (GTK_CONTAINER (frame51), vbox128);
|
|
||||||
|
|
||||||
show_currencies_button = gtk_check_button_new_with_label (_("Show National Currencies"));
|
|
||||||
gtk_widget_ref (show_currencies_button);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "show_currencies_button", show_currencies_button,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (show_currencies_button);
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox128), show_currencies_button, FALSE, FALSE, 0);
|
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (show_currencies_button), 3);
|
|
||||||
|
|
||||||
scrolledwindow33 = gtk_scrolled_window_new (NULL, NULL);
|
|
||||||
gtk_widget_ref (scrolledwindow33);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "scrolledwindow33", scrolledwindow33,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (scrolledwindow33);
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox128), scrolledwindow33, TRUE, TRUE, 0);
|
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (scrolledwindow33), 3);
|
|
||||||
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow33), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);
|
|
||||||
|
|
||||||
commodity_list = gtk_clist_new (5);
|
|
||||||
gtk_widget_ref (commodity_list);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "commodity_list", commodity_list,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (commodity_list);
|
|
||||||
gtk_container_add (GTK_CONTAINER (scrolledwindow33), commodity_list);
|
|
||||||
gtk_clist_set_column_width (GTK_CLIST (commodity_list), 0, 80);
|
|
||||||
gtk_clist_set_column_width (GTK_CLIST (commodity_list), 1, 80);
|
|
||||||
gtk_clist_set_column_width (GTK_CLIST (commodity_list), 2, 80);
|
|
||||||
gtk_clist_set_column_width (GTK_CLIST (commodity_list), 3, 80);
|
|
||||||
gtk_clist_set_column_width (GTK_CLIST (commodity_list), 4, 80);
|
|
||||||
gtk_clist_column_titles_show (GTK_CLIST (commodity_list));
|
|
||||||
|
|
||||||
label8477426 = gtk_label_new (_("Type"));
|
|
||||||
gtk_widget_ref (label8477426);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "label8477426", label8477426,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (label8477426);
|
|
||||||
gtk_clist_set_column_widget (GTK_CLIST (commodity_list), 0, label8477426);
|
|
||||||
|
|
||||||
label8477427 = gtk_label_new (_("Symbol"));
|
|
||||||
gtk_widget_ref (label8477427);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "label8477427", label8477427,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (label8477427);
|
|
||||||
gtk_clist_set_column_widget (GTK_CLIST (commodity_list), 1, label8477427);
|
|
||||||
|
|
||||||
label8477428 = gtk_label_new (_("Name"));
|
|
||||||
gtk_widget_ref (label8477428);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "label8477428", label8477428,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (label8477428);
|
|
||||||
gtk_clist_set_column_widget (GTK_CLIST (commodity_list), 2, label8477428);
|
|
||||||
|
|
||||||
label8477429 = gtk_label_new (_("Code"));
|
|
||||||
gtk_widget_ref (label8477429);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "label8477429", label8477429,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (label8477429);
|
|
||||||
gtk_clist_set_column_widget (GTK_CLIST (commodity_list), 3, label8477429);
|
|
||||||
|
|
||||||
label8477430 = gtk_label_new (_("Fraction"));
|
|
||||||
gtk_widget_ref (label8477430);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "label8477430", label8477430,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (label8477430);
|
|
||||||
gtk_clist_set_column_widget (GTK_CLIST (commodity_list), 4, label8477430);
|
|
||||||
|
|
||||||
hbuttonbox7 = gtk_hbutton_box_new ();
|
|
||||||
gtk_widget_ref (hbuttonbox7);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "hbuttonbox7", hbuttonbox7,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (hbuttonbox7);
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox128), hbuttonbox7, FALSE, FALSE, 0);
|
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox7), 3);
|
|
||||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox7), GTK_BUTTONBOX_SPREAD);
|
|
||||||
|
|
||||||
add_button = gtk_button_new_with_label (_("Add"));
|
|
||||||
gtk_widget_ref (add_button);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "add_button", add_button,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (add_button);
|
|
||||||
gtk_container_add (GTK_CONTAINER (hbuttonbox7), add_button);
|
|
||||||
GTK_WIDGET_SET_FLAGS (add_button, GTK_CAN_DEFAULT);
|
|
||||||
gtk_tooltips_set_tip (tooltips, add_button, _("Add a new price."), NULL);
|
|
||||||
|
|
||||||
remove_button = gtk_button_new_with_label (_("Remove"));
|
|
||||||
gtk_widget_ref (remove_button);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "remove_button", remove_button,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (remove_button);
|
|
||||||
gtk_container_add (GTK_CONTAINER (hbuttonbox7), remove_button);
|
|
||||||
GTK_WIDGET_SET_FLAGS (remove_button, GTK_CAN_DEFAULT);
|
|
||||||
gtk_tooltips_set_tip (tooltips, remove_button, _("Remove the current price"), NULL);
|
|
||||||
|
|
||||||
edit_button = gtk_button_new_with_label (_("Edit"));
|
|
||||||
gtk_widget_ref (edit_button);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "edit_button", edit_button,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (edit_button);
|
|
||||||
gtk_container_add (GTK_CONTAINER (hbuttonbox7), edit_button);
|
|
||||||
GTK_WIDGET_SET_FLAGS (edit_button, GTK_CAN_DEFAULT);
|
|
||||||
|
|
||||||
hbuttonbox6 = GNOME_DIALOG (Commodities_Dialog)->action_area;
|
|
||||||
gtk_object_set_data (GTK_OBJECT (Commodities_Dialog), "hbuttonbox6", hbuttonbox6);
|
|
||||||
gtk_widget_show (hbuttonbox6);
|
|
||||||
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox6), GTK_BUTTONBOX_END);
|
|
||||||
gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbuttonbox6), 8);
|
|
||||||
|
|
||||||
gnome_dialog_append_button (GNOME_DIALOG (Commodities_Dialog), GNOME_STOCK_BUTTON_CLOSE);
|
|
||||||
close_button = g_list_last (GNOME_DIALOG (Commodities_Dialog)->buttons)->data;
|
|
||||||
gtk_widget_ref (close_button);
|
|
||||||
gtk_object_set_data_full (GTK_OBJECT (Commodities_Dialog), "close_button", close_button,
|
|
||||||
(GtkDestroyNotify) gtk_widget_unref);
|
|
||||||
gtk_widget_show (close_button);
|
|
||||||
GTK_WIDGET_SET_FLAGS (close_button, GTK_CAN_DEFAULT);
|
|
||||||
|
|
||||||
gtk_object_set_data (GTK_OBJECT (Commodities_Dialog), "tooltips", tooltips);
|
|
||||||
|
|
||||||
return Commodities_Dialog;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -27,4 +27,3 @@ GtkWidget* create_Edit_Column_View_Page (void);
|
|||||||
GtkWidget* create_Edit_Report_Size (void);
|
GtkWidget* create_Edit_Report_Size (void);
|
||||||
GtkWidget* create_Prices_Dialog (void);
|
GtkWidget* create_Prices_Dialog (void);
|
||||||
GtkWidget* create_Price_Dialog (void);
|
GtkWidget* create_Price_Dialog (void);
|
||||||
GtkWidget* create_Commodities_Dialog (void);
|
|
||||||
|
10
src/gnome/glade/Makefile.am
Normal file
10
src/gnome/glade/Makefile.am
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
gladedir = $(GNC_GLADE_DIR)
|
||||||
|
glade_DATA = \
|
||||||
|
commodity.glade
|
||||||
|
|
||||||
|
STRING_FILES = \
|
||||||
|
commodity_strings.c
|
||||||
|
|
||||||
|
EXTRA_DIST = $(glade_DATA) $(STRING_FILES)
|
||||||
|
|
||||||
|
|
256
src/gnome/glade/commodity.glade
Normal file
256
src/gnome/glade/commodity.glade
Normal file
@ -0,0 +1,256 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<GTK-Interface>
|
||||||
|
|
||||||
|
<project>
|
||||||
|
<name>Glade</name>
|
||||||
|
<program_name>glade</program_name>
|
||||||
|
<directory></directory>
|
||||||
|
<source_directory></source_directory>
|
||||||
|
<pixmaps_directory></pixmaps_directory>
|
||||||
|
<language>C</language>
|
||||||
|
<gnome_support>True</gnome_support>
|
||||||
|
<gettext_support>True</gettext_support>
|
||||||
|
<output_main_file>False</output_main_file>
|
||||||
|
<output_support_files>False</output_support_files>
|
||||||
|
<output_build_files>False</output_build_files>
|
||||||
|
<backup_source_files>False</backup_source_files>
|
||||||
|
<output_translatable_strings>True</output_translatable_strings>
|
||||||
|
<translatable_strings_file>commodity_strings.c</translatable_strings_file>
|
||||||
|
</project>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GnomeDialog</class>
|
||||||
|
<name>Commodities Dialog</name>
|
||||||
|
<title>Commodities</title>
|
||||||
|
<type>GTK_WINDOW_TOPLEVEL</type>
|
||||||
|
<position>GTK_WIN_POS_NONE</position>
|
||||||
|
<modal>False</modal>
|
||||||
|
<allow_shrink>True</allow_shrink>
|
||||||
|
<allow_grow>True</allow_grow>
|
||||||
|
<auto_shrink>False</auto_shrink>
|
||||||
|
<auto_close>False</auto_close>
|
||||||
|
<hide_on_close>False</hide_on_close>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkVBox</class>
|
||||||
|
<child_name>GnomeDialog:vbox</child_name>
|
||||||
|
<name>vbox127</name>
|
||||||
|
<homogeneous>False</homogeneous>
|
||||||
|
<spacing>8</spacing>
|
||||||
|
<child>
|
||||||
|
<padding>4</padding>
|
||||||
|
<expand>True</expand>
|
||||||
|
<fill>True</fill>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkHButtonBox</class>
|
||||||
|
<child_name>GnomeDialog:action_area</child_name>
|
||||||
|
<name>hbuttonbox6</name>
|
||||||
|
<layout_style>GTK_BUTTONBOX_END</layout_style>
|
||||||
|
<spacing>8</spacing>
|
||||||
|
<child_min_width>85</child_min_width>
|
||||||
|
<child_min_height>27</child_min_height>
|
||||||
|
<child_ipad_x>7</child_ipad_x>
|
||||||
|
<child_ipad_y>0</child_ipad_y>
|
||||||
|
<child>
|
||||||
|
<padding>0</padding>
|
||||||
|
<expand>False</expand>
|
||||||
|
<fill>True</fill>
|
||||||
|
<pack>GTK_PACK_END</pack>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkButton</class>
|
||||||
|
<name>close_button</name>
|
||||||
|
<can_default>True</can_default>
|
||||||
|
<can_focus>True</can_focus>
|
||||||
|
<stock_button>GNOME_STOCK_BUTTON_CLOSE</stock_button>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkHBox</class>
|
||||||
|
<name>hbox107</name>
|
||||||
|
<homogeneous>False</homogeneous>
|
||||||
|
<spacing>2</spacing>
|
||||||
|
<child>
|
||||||
|
<padding>0</padding>
|
||||||
|
<expand>True</expand>
|
||||||
|
<fill>True</fill>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkFrame</class>
|
||||||
|
<name>frame51</name>
|
||||||
|
<border_width>3</border_width>
|
||||||
|
<label>Commodities</label>
|
||||||
|
<label_xalign>0</label_xalign>
|
||||||
|
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
||||||
|
<child>
|
||||||
|
<padding>0</padding>
|
||||||
|
<expand>True</expand>
|
||||||
|
<fill>True</fill>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkVBox</class>
|
||||||
|
<name>vbox128</name>
|
||||||
|
<homogeneous>False</homogeneous>
|
||||||
|
<spacing>0</spacing>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkCheckButton</class>
|
||||||
|
<name>show_currencies_button</name>
|
||||||
|
<border_width>3</border_width>
|
||||||
|
<can_focus>True</can_focus>
|
||||||
|
<label>Show National Currencies</label>
|
||||||
|
<active>False</active>
|
||||||
|
<draw_indicator>True</draw_indicator>
|
||||||
|
<child>
|
||||||
|
<padding>0</padding>
|
||||||
|
<expand>False</expand>
|
||||||
|
<fill>False</fill>
|
||||||
|
</child>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkScrolledWindow</class>
|
||||||
|
<name>scrolledwindow33</name>
|
||||||
|
<border_width>3</border_width>
|
||||||
|
<hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
|
||||||
|
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
|
||||||
|
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
|
||||||
|
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
|
||||||
|
<child>
|
||||||
|
<padding>0</padding>
|
||||||
|
<expand>True</expand>
|
||||||
|
<fill>True</fill>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkCList</class>
|
||||||
|
<name>commodity_list</name>
|
||||||
|
<can_focus>True</can_focus>
|
||||||
|
<columns>5</columns>
|
||||||
|
<column_widths>80,80,80,80,80</column_widths>
|
||||||
|
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
|
||||||
|
<show_titles>True</show_titles>
|
||||||
|
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkLabel</class>
|
||||||
|
<child_name>CList:title</child_name>
|
||||||
|
<name>label8477426</name>
|
||||||
|
<label>Type</label>
|
||||||
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||||
|
<wrap>False</wrap>
|
||||||
|
<xalign>0.5</xalign>
|
||||||
|
<yalign>0.5</yalign>
|
||||||
|
<xpad>0</xpad>
|
||||||
|
<ypad>0</ypad>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkLabel</class>
|
||||||
|
<child_name>CList:title</child_name>
|
||||||
|
<name>label8477427</name>
|
||||||
|
<label>Symbol</label>
|
||||||
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||||
|
<wrap>False</wrap>
|
||||||
|
<xalign>0.5</xalign>
|
||||||
|
<yalign>0.5</yalign>
|
||||||
|
<xpad>0</xpad>
|
||||||
|
<ypad>0</ypad>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkLabel</class>
|
||||||
|
<child_name>CList:title</child_name>
|
||||||
|
<name>label8477428</name>
|
||||||
|
<label>Name</label>
|
||||||
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||||
|
<wrap>False</wrap>
|
||||||
|
<xalign>0.5</xalign>
|
||||||
|
<yalign>0.5</yalign>
|
||||||
|
<xpad>0</xpad>
|
||||||
|
<ypad>0</ypad>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkLabel</class>
|
||||||
|
<child_name>CList:title</child_name>
|
||||||
|
<name>label8477429</name>
|
||||||
|
<label>Code</label>
|
||||||
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||||
|
<wrap>False</wrap>
|
||||||
|
<xalign>0.5</xalign>
|
||||||
|
<yalign>0.5</yalign>
|
||||||
|
<xpad>0</xpad>
|
||||||
|
<ypad>0</ypad>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkLabel</class>
|
||||||
|
<child_name>CList:title</child_name>
|
||||||
|
<name>label8477430</name>
|
||||||
|
<label>Fraction</label>
|
||||||
|
<justify>GTK_JUSTIFY_CENTER</justify>
|
||||||
|
<wrap>False</wrap>
|
||||||
|
<xalign>0.5</xalign>
|
||||||
|
<yalign>0.5</yalign>
|
||||||
|
<xpad>0</xpad>
|
||||||
|
<ypad>0</ypad>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkHButtonBox</class>
|
||||||
|
<name>hbuttonbox7</name>
|
||||||
|
<border_width>3</border_width>
|
||||||
|
<layout_style>GTK_BUTTONBOX_SPREAD</layout_style>
|
||||||
|
<spacing>30</spacing>
|
||||||
|
<child_min_width>85</child_min_width>
|
||||||
|
<child_min_height>27</child_min_height>
|
||||||
|
<child_ipad_x>7</child_ipad_x>
|
||||||
|
<child_ipad_y>0</child_ipad_y>
|
||||||
|
<child>
|
||||||
|
<padding>0</padding>
|
||||||
|
<expand>False</expand>
|
||||||
|
<fill>False</fill>
|
||||||
|
</child>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkButton</class>
|
||||||
|
<name>add_button</name>
|
||||||
|
<tooltip>Add a new price.</tooltip>
|
||||||
|
<can_default>True</can_default>
|
||||||
|
<can_focus>True</can_focus>
|
||||||
|
<label>Add</label>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkButton</class>
|
||||||
|
<name>remove_button</name>
|
||||||
|
<tooltip>Remove the current price</tooltip>
|
||||||
|
<can_default>True</can_default>
|
||||||
|
<can_focus>True</can_focus>
|
||||||
|
<label>Remove</label>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkButton</class>
|
||||||
|
<name>edit_button</name>
|
||||||
|
<can_default>True</can_default>
|
||||||
|
<can_focus>True</can_focus>
|
||||||
|
<label>Edit</label>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
|
||||||
|
</GTK-Interface>
|
19
src/gnome/glade/commodity_strings.c
Normal file
19
src/gnome/glade/commodity_strings.c
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Translatable strings file generated by Glade.
|
||||||
|
* Add this file to your project's POTFILES.in.
|
||||||
|
* DO NOT compile it as part of your application.
|
||||||
|
*/
|
||||||
|
|
||||||
|
gchar *s = N_("Commodities");
|
||||||
|
gchar *s = N_("Commodities");
|
||||||
|
gchar *s = N_("Show National Currencies");
|
||||||
|
gchar *s = N_("Type");
|
||||||
|
gchar *s = N_("Symbol");
|
||||||
|
gchar *s = N_("Name");
|
||||||
|
gchar *s = N_("Code");
|
||||||
|
gchar *s = N_("Fraction");
|
||||||
|
gchar *s = N_("Add a new price.");
|
||||||
|
gchar *s = N_("Add");
|
||||||
|
gchar *s = N_("Remove the current price");
|
||||||
|
gchar *s = N_("Remove");
|
||||||
|
gchar *s = N_("Edit");
|
@ -11400,239 +11400,4 @@ Unknown
|
|||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GnomeDialog</class>
|
|
||||||
<name>Commodities Dialog</name>
|
|
||||||
<title>Commodities</title>
|
|
||||||
<type>GTK_WINDOW_TOPLEVEL</type>
|
|
||||||
<position>GTK_WIN_POS_NONE</position>
|
|
||||||
<modal>False</modal>
|
|
||||||
<allow_shrink>True</allow_shrink>
|
|
||||||
<allow_grow>True</allow_grow>
|
|
||||||
<auto_shrink>False</auto_shrink>
|
|
||||||
<auto_close>False</auto_close>
|
|
||||||
<hide_on_close>False</hide_on_close>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkVBox</class>
|
|
||||||
<child_name>GnomeDialog:vbox</child_name>
|
|
||||||
<name>vbox127</name>
|
|
||||||
<homogeneous>False</homogeneous>
|
|
||||||
<spacing>8</spacing>
|
|
||||||
<child>
|
|
||||||
<padding>4</padding>
|
|
||||||
<expand>True</expand>
|
|
||||||
<fill>True</fill>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkHButtonBox</class>
|
|
||||||
<child_name>GnomeDialog:action_area</child_name>
|
|
||||||
<name>hbuttonbox6</name>
|
|
||||||
<layout_style>GTK_BUTTONBOX_END</layout_style>
|
|
||||||
<spacing>8</spacing>
|
|
||||||
<child_min_width>85</child_min_width>
|
|
||||||
<child_min_height>27</child_min_height>
|
|
||||||
<child_ipad_x>7</child_ipad_x>
|
|
||||||
<child_ipad_y>0</child_ipad_y>
|
|
||||||
<child>
|
|
||||||
<padding>0</padding>
|
|
||||||
<expand>False</expand>
|
|
||||||
<fill>True</fill>
|
|
||||||
<pack>GTK_PACK_END</pack>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkButton</class>
|
|
||||||
<name>close_button</name>
|
|
||||||
<can_default>True</can_default>
|
|
||||||
<can_focus>True</can_focus>
|
|
||||||
<stock_button>GNOME_STOCK_BUTTON_CLOSE</stock_button>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkHBox</class>
|
|
||||||
<name>hbox107</name>
|
|
||||||
<homogeneous>False</homogeneous>
|
|
||||||
<spacing>2</spacing>
|
|
||||||
<child>
|
|
||||||
<padding>0</padding>
|
|
||||||
<expand>True</expand>
|
|
||||||
<fill>True</fill>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkFrame</class>
|
|
||||||
<name>frame51</name>
|
|
||||||
<border_width>3</border_width>
|
|
||||||
<label>Commodities</label>
|
|
||||||
<label_xalign>0</label_xalign>
|
|
||||||
<shadow_type>GTK_SHADOW_ETCHED_IN</shadow_type>
|
|
||||||
<child>
|
|
||||||
<padding>0</padding>
|
|
||||||
<expand>True</expand>
|
|
||||||
<fill>True</fill>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkVBox</class>
|
|
||||||
<name>vbox128</name>
|
|
||||||
<homogeneous>False</homogeneous>
|
|
||||||
<spacing>0</spacing>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkCheckButton</class>
|
|
||||||
<name>show_currencies_button</name>
|
|
||||||
<border_width>3</border_width>
|
|
||||||
<can_focus>True</can_focus>
|
|
||||||
<label>Show National Currencies</label>
|
|
||||||
<active>False</active>
|
|
||||||
<draw_indicator>True</draw_indicator>
|
|
||||||
<child>
|
|
||||||
<padding>0</padding>
|
|
||||||
<expand>False</expand>
|
|
||||||
<fill>False</fill>
|
|
||||||
</child>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkScrolledWindow</class>
|
|
||||||
<name>scrolledwindow33</name>
|
|
||||||
<border_width>3</border_width>
|
|
||||||
<hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
|
|
||||||
<vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
|
|
||||||
<hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
|
|
||||||
<vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
|
|
||||||
<child>
|
|
||||||
<padding>0</padding>
|
|
||||||
<expand>True</expand>
|
|
||||||
<fill>True</fill>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkCList</class>
|
|
||||||
<name>commodity_list</name>
|
|
||||||
<can_focus>True</can_focus>
|
|
||||||
<columns>5</columns>
|
|
||||||
<column_widths>80,80,80,80,80</column_widths>
|
|
||||||
<selection_mode>GTK_SELECTION_SINGLE</selection_mode>
|
|
||||||
<show_titles>True</show_titles>
|
|
||||||
<shadow_type>GTK_SHADOW_IN</shadow_type>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkLabel</class>
|
|
||||||
<child_name>CList:title</child_name>
|
|
||||||
<name>label8477426</name>
|
|
||||||
<label>Type</label>
|
|
||||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
||||||
<wrap>False</wrap>
|
|
||||||
<xalign>0.5</xalign>
|
|
||||||
<yalign>0.5</yalign>
|
|
||||||
<xpad>0</xpad>
|
|
||||||
<ypad>0</ypad>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkLabel</class>
|
|
||||||
<child_name>CList:title</child_name>
|
|
||||||
<name>label8477427</name>
|
|
||||||
<label>Symbol</label>
|
|
||||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
||||||
<wrap>False</wrap>
|
|
||||||
<xalign>0.5</xalign>
|
|
||||||
<yalign>0.5</yalign>
|
|
||||||
<xpad>0</xpad>
|
|
||||||
<ypad>0</ypad>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkLabel</class>
|
|
||||||
<child_name>CList:title</child_name>
|
|
||||||
<name>label8477428</name>
|
|
||||||
<label>Name</label>
|
|
||||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
||||||
<wrap>False</wrap>
|
|
||||||
<xalign>0.5</xalign>
|
|
||||||
<yalign>0.5</yalign>
|
|
||||||
<xpad>0</xpad>
|
|
||||||
<ypad>0</ypad>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkLabel</class>
|
|
||||||
<child_name>CList:title</child_name>
|
|
||||||
<name>label8477429</name>
|
|
||||||
<label>Code</label>
|
|
||||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
||||||
<wrap>False</wrap>
|
|
||||||
<xalign>0.5</xalign>
|
|
||||||
<yalign>0.5</yalign>
|
|
||||||
<xpad>0</xpad>
|
|
||||||
<ypad>0</ypad>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkLabel</class>
|
|
||||||
<child_name>CList:title</child_name>
|
|
||||||
<name>label8477430</name>
|
|
||||||
<label>Fraction</label>
|
|
||||||
<justify>GTK_JUSTIFY_CENTER</justify>
|
|
||||||
<wrap>False</wrap>
|
|
||||||
<xalign>0.5</xalign>
|
|
||||||
<yalign>0.5</yalign>
|
|
||||||
<xpad>0</xpad>
|
|
||||||
<ypad>0</ypad>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkHButtonBox</class>
|
|
||||||
<name>hbuttonbox7</name>
|
|
||||||
<border_width>3</border_width>
|
|
||||||
<layout_style>GTK_BUTTONBOX_SPREAD</layout_style>
|
|
||||||
<spacing>30</spacing>
|
|
||||||
<child_min_width>85</child_min_width>
|
|
||||||
<child_min_height>27</child_min_height>
|
|
||||||
<child_ipad_x>7</child_ipad_x>
|
|
||||||
<child_ipad_y>0</child_ipad_y>
|
|
||||||
<child>
|
|
||||||
<padding>0</padding>
|
|
||||||
<expand>False</expand>
|
|
||||||
<fill>False</fill>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkButton</class>
|
|
||||||
<name>add_button</name>
|
|
||||||
<tooltip>Add a new price.</tooltip>
|
|
||||||
<can_default>True</can_default>
|
|
||||||
<can_focus>True</can_focus>
|
|
||||||
<label>Add</label>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkButton</class>
|
|
||||||
<name>remove_button</name>
|
|
||||||
<tooltip>Remove the current price</tooltip>
|
|
||||||
<can_default>True</can_default>
|
|
||||||
<can_focus>True</can_focus>
|
|
||||||
<label>Remove</label>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
<widget>
|
|
||||||
<class>GtkButton</class>
|
|
||||||
<name>edit_button</name>
|
|
||||||
<can_default>True</can_default>
|
|
||||||
<can_focus>True</can_focus>
|
|
||||||
<label>Edit</label>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
|
|
||||||
</GTK-Interface>
|
</GTK-Interface>
|
||||||
|
@ -23,7 +23,8 @@
|
|||||||
#ifndef __GNC_DIR_H__
|
#ifndef __GNC_DIR_H__
|
||||||
#define __GNC_DIR_H__
|
#define __GNC_DIR_H__
|
||||||
|
|
||||||
#define GNC_PIXMAP_DIR "@-GNC_PIXMAP_DIR-@"
|
|
||||||
#define GNC_ACCOUNTS_DIR "@-GNC_ACCOUNTS_DIR-@"
|
#define GNC_ACCOUNTS_DIR "@-GNC_ACCOUNTS_DIR-@"
|
||||||
|
#define GNC_GLADE_DIR "@-GNC_GLADE_DIR-@"
|
||||||
|
#define GNC_PIXMAP_DIR "@-GNC_PIXMAP_DIR-@"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user