gtk2prefs tweaking
This commit is contained in:
parent
80be398c40
commit
5c6dacbecf
|
@ -138,7 +138,7 @@ create_main_window (void)
|
||||||
|
|
||||||
main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_widget_set_name (main_window, "main_window");
|
gtk_widget_set_name (main_window, "main_window");
|
||||||
gtk_window_set_title (GTK_WINDOW (main_window), "Gtk2 Theme Selector");
|
gtk_window_set_title (GTK_WINDOW (main_window), "GTK+ Preference Tool");
|
||||||
|
|
||||||
main_hbox = gtk_hbox_new (FALSE, 0);
|
main_hbox = gtk_hbox_new (FALSE, 0);
|
||||||
gtk_widget_set_name (main_hbox, "main_hbox");
|
gtk_widget_set_name (main_hbox, "main_hbox");
|
||||||
|
@ -273,11 +273,11 @@ create_main_window (void)
|
||||||
gtk_widget_show (hbox6666);
|
gtk_widget_show (hbox6666);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox13), hbox6666, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox13), hbox6666, TRUE, TRUE, 0);
|
||||||
|
|
||||||
main_use_system_config_checkbutton = gtk_check_button_new_with_mnemonic ("Apply for all users");
|
/* main_use_system_config_checkbutton = gtk_check_button_new_with_mnemonic ("Apply for all users");
|
||||||
gtk_widget_set_name (main_use_system_config_checkbutton, "main_use_system_config_checkbutton");
|
gtk_widget_set_name (main_use_system_config_checkbutton, "main_use_system_config_checkbutton");
|
||||||
gtk_widget_show (main_use_system_config_checkbutton);
|
gtk_widget_show (main_use_system_config_checkbutton);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox6666), main_use_system_config_checkbutton, FALSE, FALSE, 12);
|
gtk_box_pack_start (GTK_BOX (hbox6666), main_use_system_config_checkbutton, FALSE, FALSE, 12);
|
||||||
gtk_tooltips_set_tip (tooltips, main_use_system_config_checkbutton, "If this is enabled, the program will update the system-wide configuration file. NOT RECOMMENDED!", NULL);
|
gtk_tooltips_set_tip (tooltips, main_use_system_config_checkbutton, "If this is enabled, the program will update the system-wide configuration file. NOT RECOMMENDED!", NULL); */
|
||||||
|
|
||||||
main_showpreviewtoggle = gtk_toggle_button_new_with_mnemonic ("Show preview >>");
|
main_showpreviewtoggle = gtk_toggle_button_new_with_mnemonic ("Show preview >>");
|
||||||
gtk_widget_set_name (main_showpreviewtoggle, "main_showpreviewtoggle");
|
gtk_widget_set_name (main_showpreviewtoggle, "main_showpreviewtoggle");
|
||||||
|
@ -755,7 +755,7 @@ create_main_window (void)
|
||||||
GLADE_HOOKUP_OBJECT (main_window, label669, "label669");
|
GLADE_HOOKUP_OBJECT (main_window, label669, "label669");
|
||||||
GLADE_HOOKUP_OBJECT (main_window, vbox13, "vbox13");
|
GLADE_HOOKUP_OBJECT (main_window, vbox13, "vbox13");
|
||||||
GLADE_HOOKUP_OBJECT (main_window, hbox6666, "hbox6666");
|
GLADE_HOOKUP_OBJECT (main_window, hbox6666, "hbox6666");
|
||||||
GLADE_HOOKUP_OBJECT (main_window, main_use_system_config_checkbutton, "main_use_system_config_checkbutton");
|
/* GLADE_HOOKUP_OBJECT (main_window, main_use_system_config_checkbutton, "main_use_system_config_checkbutton"); */
|
||||||
GLADE_HOOKUP_OBJECT (main_window, main_showpreviewtoggle, "main_showpreviewtoggle");
|
GLADE_HOOKUP_OBJECT (main_window, main_showpreviewtoggle, "main_showpreviewtoggle");
|
||||||
GLADE_HOOKUP_OBJECT (main_window, hbuttonbox1, "hbuttonbox1");
|
GLADE_HOOKUP_OBJECT (main_window, hbuttonbox1, "hbuttonbox1");
|
||||||
GLADE_HOOKUP_OBJECT (main_window, hbox7, "hbox7");
|
GLADE_HOOKUP_OBJECT (main_window, hbox7, "hbox7");
|
||||||
|
|
|
@ -349,7 +349,7 @@ int main(int argc, char *argv[])
|
||||||
populate_with_themes(lookup_widget(g_main_window, "main_themelist"));
|
populate_with_themes(lookup_widget(g_main_window, "main_themelist"));
|
||||||
|
|
||||||
|
|
||||||
std::string about_text = std::string("Gtk2 Theme Selector v") + "\n\
|
std::string about_text = std::string("GTK+ Preference Tool") + "\n\
|
||||||
\n\
|
\n\
|
||||||
by Alex Shaduri <ashaduri@gmail.com>\n\
|
by Alex Shaduri <ashaduri@gmail.com>\n\
|
||||||
\n\
|
\n\
|
||||||
|
@ -506,10 +506,10 @@ bool save_current_theme()
|
||||||
|
|
||||||
std::string conf_file = "";
|
std::string conf_file = "";
|
||||||
|
|
||||||
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(lookup_widget(g_main_window, "main_use_system_config_checkbutton")))) {
|
if ((_access( "portable-mode", 0 )) != -1) {
|
||||||
|
|
||||||
char* themes_dir_c = gtk_rc_get_theme_dir();
|
char* themes_dir_c = gtk_rc_get_theme_dir();
|
||||||
char* conf_file_c = g_build_filename(themes_dir_c, "..", "..", "etc", "gtk-2.0", "gtkrc", NULL);
|
char* conf_file_c = g_build_filename("etc", "gtk-2.0", "gtkrc", NULL);
|
||||||
|
|
||||||
conf_file = (conf_file_c ? conf_file_c : "");
|
conf_file = (conf_file_c ? conf_file_c : "");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue