mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bill Gribble's patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3653 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9a7f5b18d4
commit
05b1b293c7
@ -206,13 +206,13 @@ gnc_style_sheet_dialog_close_cb(GtkWidget * w, GdkEventAny * ev,
|
||||
gpointer user_data) {
|
||||
StyleSheetDialog * ss = user_data;
|
||||
gtk_widget_hide(GTK_WIDGET(ss->toplevel));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static StyleSheetDialog *
|
||||
gnc_style_sheet_dialog_create() {
|
||||
StyleSheetDialog * ss = g_new0(StyleSheetDialog, 1);
|
||||
GtkObject * tlo;
|
||||
GtkWidget * close_button=NULL;
|
||||
GtkWidget * new_button=NULL;
|
||||
GtkWidget * delete_button=NULL;
|
||||
ss->toplevel = create_HTML_Style_Sheet_Dialog();
|
||||
@ -224,13 +224,13 @@ gnc_style_sheet_dialog_create() {
|
||||
delete_button = gtk_object_get_data(tlo, "delete_button");
|
||||
|
||||
gtk_signal_connect(GTK_OBJECT(ss->list), "select_row",
|
||||
gnc_style_sheet_dialog_select_cb, ss);
|
||||
GTK_SIGNAL_FUNC(gnc_style_sheet_dialog_select_cb), ss);
|
||||
gtk_signal_connect(GTK_OBJECT(new_button), "clicked",
|
||||
gnc_style_sheet_new_cb, ss);
|
||||
GTK_SIGNAL_FUNC(gnc_style_sheet_new_cb), ss);
|
||||
gtk_signal_connect(GTK_OBJECT(delete_button), "clicked",
|
||||
gnc_style_sheet_delete_cb, ss);
|
||||
GTK_SIGNAL_FUNC(gnc_style_sheet_delete_cb), ss);
|
||||
gtk_signal_connect(GTK_OBJECT(ss->toplevel), "delete_event",
|
||||
gnc_style_sheet_dialog_close_cb, ss);
|
||||
GTK_SIGNAL_FUNC(gnc_style_sheet_dialog_close_cb), ss);
|
||||
|
||||
gnc_style_sheet_dialog_fill(ss, SCM_BOOL_F);
|
||||
gtk_window_set_policy(GTK_WINDOW(ss->toplevel), FALSE, TRUE, FALSE);
|
||||
@ -241,15 +241,6 @@ gnc_style_sheet_dialog_create() {
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
gnc_style_sheet_dialog_destroy(StyleSheetDialog * ssd) {
|
||||
gtk_widget_destroy(ssd->toplevel);
|
||||
g_free(ssd);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
gnc_style_sheet_dialog_open(void) {
|
||||
if(gnc_style_sheet_dialog) {
|
||||
|
Loading…
Reference in New Issue
Block a user