Skip to content
Snippets Groups Projects
Commit 48f14de0 authored by deuce's avatar deuce
Browse files

Settings tab now working.

parent 31d38dba
No related branches found
No related tags found
No related merge requests found
......@@ -439,6 +439,153 @@ void load_user(GtkWidget *wiggy, gpointer data)
sprintf(str, "%hu", user.fbacks);
gtk_entry_set_text(GTK_ENTRY(w),str);
}
/* Settings */
w=glade_xml_get_widget(xml, "cUserAUTOTERM");
if(w==NULL)
fprintf(stderr,"Cannot get the autoterm widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&AUTOTERM);
w=glade_xml_get_widget(xml, "cUserNO_EXASCII");
if(w==NULL)
fprintf(stderr,"Cannot get the no exascii widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&NO_EXASCII);
w=glade_xml_get_widget(xml, "cUserANSI");
if(w==NULL)
fprintf(stderr,"Cannot get the ansi widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&ANSI);
w=glade_xml_get_widget(xml, "cUserCOLOR");
if(w==NULL)
fprintf(stderr,"Cannot get the color widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&COLOR);
w=glade_xml_get_widget(xml, "cUserRIP");
if(w==NULL)
fprintf(stderr,"Cannot get the RIP widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&RIP);
w=glade_xml_get_widget(xml, "cUserWIP");
if(w==NULL)
fprintf(stderr,"Cannot get the WIP widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&WIP);
w=glade_xml_get_widget(xml, "cUserUPAUSE");
if(w==NULL)
fprintf(stderr,"Cannot get the upause widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&UPAUSE);
w=glade_xml_get_widget(xml, "cUserCOLDKEYS");
if(w==NULL)
fprintf(stderr,"Cannot get the coldkeys widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&COLDKEYS);
w=glade_xml_get_widget(xml, "cUserSPIN");
if(w==NULL)
fprintf(stderr,"Cannot get the spin widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&SPIN);
w=glade_xml_get_widget(xml, "cUserRIP");
if(w==NULL)
fprintf(stderr,"Cannot get the RIP widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&RIP);
w=glade_xml_get_widget(xml, "eRows");
if(w==NULL)
fprintf(stderr,"Cannot get the rows widget\n");
else {
sprintf(str, "%hhu", user.rows);
gtk_entry_set_text(GTK_ENTRY(w),str);
}
w=glade_xml_get_widget(xml, "cCommandShell");
if(w==NULL)
fprintf(stderr,"Cannot get the command shell widget\n");
else
gtk_combo_box_set_active(GTK_COMBO_BOX(w),user.shell);
w=glade_xml_get_widget(xml, "cUserEXPERT");
if(w==NULL)
fprintf(stderr,"Cannot get the expert widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&EXPERT);
w=glade_xml_get_widget(xml, "cUserASK_NSCAN");
if(w==NULL)
fprintf(stderr,"Cannot get the ask new scan widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&ASK_NSCAN);
w=glade_xml_get_widget(xml, "cUserASK_SSCAN");
if(w==NULL)
fprintf(stderr,"Cannot get the ask to you scan widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&ASK_SSCAN);
w=glade_xml_get_widget(xml, "cUserCURSUB");
if(w==NULL)
fprintf(stderr,"Cannot get the save current sub widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&CURSUB);
w=glade_xml_get_widget(xml, "cUserQUIET");
if(w==NULL)
fprintf(stderr,"Cannot get the quiet mode widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&QUIET);
w=glade_xml_get_widget(xml, "cUserAUTOLOGON");
if(w==NULL)
fprintf(stderr,"Cannot get the auto logon widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&AUTOLOGON);
w=glade_xml_get_widget(xml, "cUserEXPERT");
if(w==NULL)
fprintf(stderr,"Cannot get the expert widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.misc&EXPERT);
w=glade_xml_get_widget(xml, "cUserCHAT_ECHO");
if(w==NULL)
fprintf(stderr,"Cannot get the chat echo widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.chat&CHAT_ECHO);
w=glade_xml_get_widget(xml, "cUserCHAT_ACTION");
if(w==NULL)
fprintf(stderr,"Cannot get the chat action widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.chat&CHAT_ACTION);
w=glade_xml_get_widget(xml, "cUserCHAT_NOPAGE");
if(w==NULL)
fprintf(stderr,"Cannot get the chat nopage widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.chat&CHAT_NOPAGE);
w=glade_xml_get_widget(xml, "cUserCHAT_NOACT");
if(w==NULL)
fprintf(stderr,"Cannot get the chat no activity widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.chat&CHAT_NOACT);
w=glade_xml_get_widget(xml, "cUserCHAT_SPLITP");
if(w==NULL)
fprintf(stderr,"Cannot get the chat split personal widget\n");
else
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),user.chat&CHAT_SPLITP);
}
int update_current_user(int new_user)
......@@ -491,10 +638,15 @@ void last_user(GtkWidget *w, gpointer data)
update_current_user(totalusers);
}
void show_about_box(GtkWidget *w, gpointer data)
void show_about_box(GtkWidget *unused, gpointer data)
{
GladeXML *ab;
ab=glade_xml_new("gtkuseredit.glade", "AboutWindow", NULL);
GtkWidget *w;
w=glade_xml_get_widget(xml, "AboutWindow");
if(w==NULL) {
fprintf(stderr,"Cannot get about window widget\n");
return;
}
gtk_widget_show(GTK_WIDGET(w));
}
void user_toggle_delete(GtkWidget *t, gpointer data)
......
......@@ -126,7 +126,7 @@ int main(int argc, char *argv[]) {
glade_init();
/* load the interface */
xml = glade_xml_new("gtkuseredit.glade", "MainWindow", NULL);
xml = glade_xml_new("gtkuseredit.glade", NULL, NULL);
/* connect the signals in the interface */
glade_xml_signal_autoconnect(xml);
/* Set up the global config stuff. */
......
......@@ -3566,7 +3566,7 @@
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton10">
<widget class="GtkCheckButton" id="cUserAUTOTERM">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Auto-Detect</property>
......@@ -3585,10 +3585,10 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton11">
<widget class="GtkCheckButton" id="cUserNO_EXASCII">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Extended ASCII</property>
<property name="label" translatable="yes">No Extended ASCII</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
......@@ -3604,7 +3604,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton12">
<widget class="GtkCheckButton" id="cUserANSI">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">ANSI</property>
......@@ -3623,7 +3623,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton13">
<widget class="GtkCheckButton" id="cUserCOLOR">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Colour</property>
......@@ -3642,7 +3642,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton14">
<widget class="GtkCheckButton" id="cUserRIP">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">RIP</property>
......@@ -3661,7 +3661,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton15">
<widget class="GtkCheckButton" id="cUserWIP">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">WIP</property>
......@@ -3680,7 +3680,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton16">
<widget class="GtkCheckButton" id="cUserUPAUSE">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Pause</property>
......@@ -3699,10 +3699,10 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton17">
<widget class="GtkCheckButton" id="cUserCOLDKEYS">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Hot Keys</property>
<property name="label" translatable="yes">No Hot Keys</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
......@@ -3718,7 +3718,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton18">
<widget class="GtkCheckButton" id="cUserSPIN">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Spinning Cursor</property>
......@@ -3783,7 +3783,7 @@
</child>
<child>
<widget class="GtkEntry" id="entry54">
<widget class="GtkEntry" id="eRows">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
......@@ -3883,10 +3883,10 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton19">
<widget class="GtkCheckButton" id="cUserEXPERT">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Export Menu Mode</property>
<property name="label" translatable="yes">Expert Menu Mode</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
......@@ -3988,7 +3988,7 @@
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton20">
<widget class="GtkCheckButton" id="cUserASK_NSCAN">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Ask for New Message Scan</property>
......@@ -4007,7 +4007,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton21">
<widget class="GtkCheckButton" id="cUserASK_SSCAN">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Ask for Your Message Scan</property>
......@@ -4026,7 +4026,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton22">
<widget class="GtkCheckButton" id="cUserCURSUB">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Remember Current Sub-Board</property>
......@@ -4045,7 +4045,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton23">
<widget class="GtkCheckButton" id="cUserQUIET">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Quiet Mode (Q exempt)</property>
......@@ -4064,7 +4064,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton24">
<widget class="GtkCheckButton" id="cUserAUTOLOGON">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Auto-Logon via IP (V exempt)</property>
......@@ -4160,7 +4160,7 @@
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton25">
<widget class="GtkCheckButton" id="cUserCHAT_ECHO">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Multinode Chat Echo</property>
......@@ -4179,7 +4179,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton26">
<widget class="GtkCheckButton" id="cUserCHAT_ACTION">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Multinode Chat Actions</property>
......@@ -4198,10 +4198,10 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton27">
<widget class="GtkCheckButton" id="cUserCHAT_NOPAGE">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Available for Internode Chat</property>
<property name="label" translatable="yes">Not Available for Internode Chat</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
......@@ -4217,10 +4217,10 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton28">
<widget class="GtkCheckButton" id="cUserCHAT_NOACT">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Multinode Activity Alerts</property>
<property name="label" translatable="yes">No Multinode Activity Alerts</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
......@@ -4236,7 +4236,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton29">
<widget class="GtkCheckButton" id="cUserCHAT_SPLITP">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Split-screen Private Chat</property>
......@@ -4386,7 +4386,7 @@
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton30">
<widget class="GtkCheckButton" id="cUserNETMAIL">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Forward Email to NetMail</property>
......@@ -4405,7 +4405,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton31">
<widget class="GtkCheckButton" id="cUserCLRSCRN">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Clear Screen Between Messages</property>
......@@ -4564,7 +4564,7 @@
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton32">
<widget class="GtkCheckButton" id="cUserQWK_FILES">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Include New Files List</property>
......@@ -4583,7 +4583,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton33">
<widget class="GtkCheckButton" id="cUserQWK_EMAIL">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Include Unread Email</property>
......@@ -4602,7 +4602,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton34">
<widget class="GtkCheckButton" id="cUserQWK_ALLMAIL">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Include ALL Email</property>
......@@ -4621,7 +4621,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton35">
<widget class="GtkCheckButton" id="cUserQWK_DELMAIL">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Delete Email After Download</property>
......@@ -4640,7 +4640,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton36">
<widget class="GtkCheckButton" id="cUserQWK_BYSELF">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Include Messages From Self</property>
......@@ -4659,7 +4659,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton37">
<widget class="GtkCheckButton" id="cUserQWK_EXPCTLA">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Expand Ctrl-A Codes to ANSI</property>
......@@ -4678,10 +4678,10 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton38">
<widget class="GtkCheckButton" id="cUserQWK_RETCTLA">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Strip Ctrl-A Codes</property>
<property name="label" translatable="yes">Retain Ctrl-A Codes</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
......@@ -4697,7 +4697,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton39">
<widget class="GtkCheckButton" id="cUserQWK_ATTACH">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Include File Attachments</property>
......@@ -4716,10 +4716,10 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton40">
<widget class="GtkCheckButton" id="cUserQWK_NOINDEX">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Include Index Files</property>
<property name="label" translatable="yes">Do Not Include Index Files</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
......@@ -4735,7 +4735,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton41">
<widget class="GtkCheckButton" id="cUserQWK_TZ">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Include Time Zone (@TZ)</property>
......@@ -4754,7 +4754,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton42">
<widget class="GtkCheckButton" id="cUserQWK_VIA">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Include Seen-Bys (@VIA)</property>
......@@ -4773,7 +4773,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton43">
<widget class="GtkCheckButton" id="cUserQWK_NOCTRL">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Extraneous Control Files</property>
......@@ -4882,7 +4882,7 @@
<property name="spacing">0</property>
<child>
<widget class="GtkCheckButton" id="checkbutton44">
<widget class="GtkCheckButton" id="cUserANFSCAN">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Auto-New Scan</property>
......@@ -4901,7 +4901,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton45">
<widget class="GtkCheckButton" id="cUserEXTDESC">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Extended Descriptions</property>
......@@ -4920,7 +4920,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton46">
<widget class="GtkCheckButton" id="cUserBATCHFLAG">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Batch Flagging</property>
......@@ -4939,7 +4939,7 @@
</child>
<child>
<widget class="GtkCheckButton" id="checkbutton47">
<widget class="GtkCheckButton" id="cUserAUTOHANG">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Auto-Hangup After Transfer</property>
......@@ -5153,7 +5153,7 @@
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
<widget class="GtkTextView" id="textview1">
<widget class="GtkTextView" id="tExtendedComment">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
......@@ -5348,48 +5348,16 @@
</child>
</widget>
<widget class="GtkWindow" id="AboutWindow">
<property name="width_request">272</property>
<property name="height_request">118</property>
<property name="visible">True</property>
<property name="title" translatable="yes">About Menu Editor</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_NONE</property>
<property name="modal">False</property>
<property name="resizable">False</property>
<property name="destroy_with_parent">True</property>
<property name="icon_name">gtk-about</property>
<property name="decorated">True</property>
<property name="skip_taskbar_hint">False</property>
<property name="skip_pager_hint">False</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="urgency_hint">False</property>
<child>
<widget class="GtkLabel" id="label73">
<property name="visible">True</property>
<property name="label" translatable="yes">GNU GPL, Copyright 2006, Rob Swindell.
Written By Stephen Hurd
Blah Blah Blah.</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_CENTER</property>
<property name="wrap">False</property>
<property name="selectable">False</property>
<property name="xalign">0.5</property>
<property name="yalign">0.5</property>
<property name="xpad">0</property>
<property name="ypad">0</property>
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
<property name="width_chars">-1</property>
<property name="single_line_mode">False</property>
<property name="angle">0</property>
</widget>
</child>
<widget class="GtkAboutDialog" id="AboutWindow">
<property name="destroy_with_parent">False</property>
<property name="name" translatable="yes">Synchronet User Editor</property>
<property name="copyright" translatable="yes">Copyright 2006 by Rob Swindell</property>
<property name="comments" translatable="yes">This program may be distributed under the terms of the GNU General Public Licence Version 2.</property>
<property name="wrap_license">False</property>
<property name="website">http://www.synchro.net/</property>
<property name="website_label" translatable="yes">www.synchro.net</property>
<property name="authors">Stephen Hurd</property>
<property name="translator_credits" translatable="yes" comments="TRANSLATORS: Replace this string with your names, one name per line.">translator-credits</property>
</widget>
</glade-interface>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment