# HG changeset patch # User Matti Hamalainen # Date 1234186952 -7200 # Node ID 5f215b88d507c3b3ab27865878025763c9b02f71 # Parent 6b7fa8232d87623e38f566cdcbdf94645768948a Some work on the GUI. diff -r 6b7fa8232d87 -r 5f215b88d507 src/xs_genui.c --- a/src/xs_genui.c Mon Feb 09 15:02:34 2009 +0200 +++ b/src/xs_genui.c Mon Feb 09 15:42:32 2009 +0200 @@ -8,3 +8,22 @@ #include "xs_interface.h" #include "xs_glade.h" + +void +xs_cfg_sp2_filter_new (GtkButton *button, + gpointer user_data) +{ + +} + + +gboolean +xs_filter_newwin_delete (GtkWidget *widget, + GdkEvent *event, + gpointer user_data) +{ + + return FALSE; +} + + diff -r 6b7fa8232d87 -r 5f215b88d507 src/xs_genui.h --- a/src/xs_genui.h Mon Feb 09 15:02:34 2009 +0200 +++ b/src/xs_genui.h Mon Feb 09 15:42:32 2009 +0200 @@ -188,3 +188,13 @@ xs_confirmwin_delete (GtkWidget *widget, GdkEvent *event, gpointer user_data); + +void +xs_cfg_sp2_filter_new (GtkButton *button, + gpointer user_data); + +gboolean +xs_filter_newwin_delete (GtkWidget *widget, + GdkEvent *event, + gpointer user_data); + diff -r 6b7fa8232d87 -r 5f215b88d507 xmms-sid.glade --- a/xmms-sid.glade Mon Feb 09 15:02:34 2009 +0200 +++ b/xmms-sid.glade Mon Feb 09 15:42:32 2009 +0200 @@ -1145,6 +1145,7 @@ GtkButton cfg_sp2_filter_export + Export all filters into a INI-format file. True True @@ -1173,6 +1174,7 @@ GtkButton cfg_sp2_filter_load + Load and use the selected filter. True True @@ -1180,7 +1182,7 @@ xs_cfg_sp2_filter_load Mon, 26 Feb 2007 13:44:12 GMT - + GTK_RELIEF_NORMAL 0 @@ -1201,6 +1203,7 @@ GtkButton cfg_sp2_filter_save + Save the currently edited filter. True True @@ -1229,6 +1232,7 @@ GtkButton cfg_sp2_filter_import + Import a INI-format filter definition file. True True @@ -1257,6 +1261,7 @@ GtkButton cfg_sp2_filter_delete + Delete the selected filter. True True @@ -1281,6 +1286,35 @@ False + + + GtkButton + cfg_sp2_filter_new + Create a new filter. + True + True + + clicked + xs_cfg_sp2_filter_new + Sat, 24 May 2008 02:36:37 GMT + + + GTK_RELIEF_NORMAL + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + @@ -1289,7 +1323,7 @@ cfg_sp2_filter_frame 2 250 - + 0 GTK_SHADOW_ETCHED_IN @@ -3304,4 +3338,215 @@ + + GtkDialog + xs_filter_newwin + + delete_event + xs_filter_newwin_delete + Mon, 09 Feb 2009 11:44:21 GMT + + Create new filter + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + True + True + False + + + GtkVBox + Dialog:vbox + dialog-vbox2 + False + 0 + + + GtkHBox + Dialog:action_area + dialog-action_area2 + 10 + True + 5 + + 0 + False + True + GTK_PACK_END + + + + GtkHButtonBox + hbuttonbox3 + GTK_BUTTONBOX_END + 8 + 85 + 27 + 0 + 0 + + 0 + True + True + + + + GtkButton + xs_filter_new_create + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + xs_filter_new_cancel + True + True + + GTK_RELIEF_NORMAL + + + + + + GtkFrame + frame1 + 6 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + True + True + + + + GtkTable + table4 + 4 + 2 + 2 + False + 4 + 4 + + + GtkEntry + xs_filter_new_name + True + True + True + 0 + + + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + GtkCombo + xs_filter_new_type_combo + False + False + False + True + False + + + 1 + 2 + 1 + 2 + 0 + 0 + True + False + False + False + True + False + + + + GtkEntry + GtkCombo:entry + xs_filter_new_type + True + False + True + 0 + + + + + + GtkLabel + label1 + + GTK_JUSTIFY_CENTER + False + 0 + 0.5 + 0 + 0 + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label2 + + GTK_JUSTIFY_CENTER + False + 0 + 0.5 + 0 + 0 + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + + +