Mercurial > geeqie.yaz
comparison src/preferences.c @ 196:f6e307c7bad6
rename GQview -> Geeqie over the code
author | nadvornik |
---|---|
date | Sun, 23 Mar 2008 20:38:54 +0000 |
parents | 9a56e3d13e67 |
children | 80d0701de0f9 |
comparison
equal
deleted
inserted
replaced
195:d85687d951aa | 196:f6e307c7bad6 |
---|---|
1 /* | 1 /* |
2 * GQview | 2 * Geeqie |
3 * (C) 2006 John Ellis | 3 * (C) 2006 John Ellis |
4 * | 4 * |
5 * Author: John Ellis | 5 * Author: John Ellis |
6 * | 6 * |
7 * This software is released under the GNU General Public License (GNU GPL). | 7 * This software is released under the GNU General Public License (GNU GPL). |
693 static void filter_default_cb(GtkWidget *widget, gpointer data) | 693 static void filter_default_cb(GtkWidget *widget, gpointer data) |
694 { | 694 { |
695 GenericDialog *gd; | 695 GenericDialog *gd; |
696 | 696 |
697 gd = generic_dialog_new(_("Reset filters"), | 697 gd = generic_dialog_new(_("Reset filters"), |
698 "GQview", "reset_filter", widget, TRUE, | 698 "Geeqie", "reset_filter", widget, TRUE, |
699 dummy_cancel_cb, NULL); | 699 dummy_cancel_cb, NULL); |
700 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Reset filters"), | 700 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Reset filters"), |
701 _("This will reset the file filters to the defaults.\nContinue?")); | 701 _("This will reset the file filters to the defaults.\nContinue?")); |
702 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, filter_default_ok_cb, TRUE); | 702 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, filter_default_ok_cb, TRUE); |
703 gtk_widget_show(gd->dialog); | 703 gtk_widget_show(gd->dialog); |
731 static void editor_default_cb(GtkWidget *widget, gpointer data) | 731 static void editor_default_cb(GtkWidget *widget, gpointer data) |
732 { | 732 { |
733 GenericDialog *gd; | 733 GenericDialog *gd; |
734 | 734 |
735 gd = generic_dialog_new(_("Reset editors"), | 735 gd = generic_dialog_new(_("Reset editors"), |
736 "GQview", "reset_filter", widget, TRUE, | 736 "Geeqie", "reset_filter", widget, TRUE, |
737 dummy_cancel_cb, NULL); | 737 dummy_cancel_cb, NULL); |
738 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Reset editors"), | 738 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Reset editors"), |
739 _("This will reset the edit commands to the defaults.\nContinue?")); | 739 _("This will reset the edit commands to the defaults.\nContinue?")); |
740 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, editor_default_ok_cb, TRUE); | 740 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, editor_default_ok_cb, TRUE); |
741 gtk_widget_show(gd->dialog); | 741 gtk_widget_show(gd->dialog); |
759 static void safe_delete_clear_cb(GtkWidget* widget, gpointer data) | 759 static void safe_delete_clear_cb(GtkWidget* widget, gpointer data) |
760 { | 760 { |
761 GenericDialog *gd; | 761 GenericDialog *gd; |
762 GtkWidget *entry; | 762 GtkWidget *entry; |
763 gd = generic_dialog_new(_("Clear trash"), | 763 gd = generic_dialog_new(_("Clear trash"), |
764 "GQview", "clear_trash", widget, TRUE, | 764 "Geeqie", "clear_trash", widget, TRUE, |
765 dummy_cancel_cb, NULL); | 765 dummy_cancel_cb, NULL); |
766 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Clear trash"), | 766 generic_dialog_add_message(gd, GTK_STOCK_DIALOG_QUESTION, _("Clear trash"), |
767 _("This will remove the trash contents.")); | 767 _("This will remove the trash contents.")); |
768 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, safe_delete_clear_ok_cb, TRUE); | 768 generic_dialog_add_button(gd, GTK_STOCK_OK, NULL, safe_delete_clear_ok_cb, TRUE); |
769 entry = gtk_entry_new(); | 769 entry = gtk_entry_new(); |
801 configwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 801 configwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
802 gtk_window_set_type_hint(GTK_WINDOW(configwindow), GDK_WINDOW_TYPE_HINT_DIALOG); | 802 gtk_window_set_type_hint(GTK_WINDOW(configwindow), GDK_WINDOW_TYPE_HINT_DIALOG); |
803 g_signal_connect(G_OBJECT (configwindow), "delete_event", | 803 g_signal_connect(G_OBJECT (configwindow), "delete_event", |
804 G_CALLBACK(config_window_delete), NULL); | 804 G_CALLBACK(config_window_delete), NULL); |
805 gtk_window_set_resizable(GTK_WINDOW(configwindow), FALSE); | 805 gtk_window_set_resizable(GTK_WINDOW(configwindow), FALSE); |
806 gtk_window_set_title(GTK_WINDOW(configwindow), _("GQview Preferences")); | 806 gtk_window_set_title(GTK_WINDOW(configwindow), _("Geeqie Preferences")); |
807 gtk_window_set_wmclass(GTK_WINDOW(configwindow), "config", "GQview"); | 807 gtk_window_set_wmclass(GTK_WINDOW(configwindow), "config", "Geeqie"); |
808 gtk_container_set_border_width(GTK_CONTAINER(configwindow), PREF_PAD_BORDER); | 808 gtk_container_set_border_width(GTK_CONTAINER(configwindow), PREF_PAD_BORDER); |
809 | 809 |
810 window_set_icon(configwindow, PIXBUF_INLINE_ICON_CONFIG, NULL); | 810 window_set_icon(configwindow, PIXBUF_INLINE_ICON_CONFIG, NULL); |
811 | 811 |
812 win_vbox = gtk_vbox_new(FALSE, PREF_PAD_SPACE); | 812 win_vbox = gtk_vbox_new(FALSE, PREF_PAD_SPACE); |
1393 return; | 1393 return; |
1394 } | 1394 } |
1395 | 1395 |
1396 about = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 1396 about = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
1397 gtk_window_set_type_hint(GTK_WINDOW(about), GDK_WINDOW_TYPE_HINT_DIALOG); | 1397 gtk_window_set_type_hint(GTK_WINDOW(about), GDK_WINDOW_TYPE_HINT_DIALOG); |
1398 gtk_window_set_wmclass(GTK_WINDOW(about), "about", "GQview"); | 1398 gtk_window_set_wmclass(GTK_WINDOW(about), "about", "Geeqie"); |
1399 g_signal_connect(G_OBJECT(about), "delete_event", | 1399 g_signal_connect(G_OBJECT(about), "delete_event", |
1400 G_CALLBACK(about_delete_cb), NULL); | 1400 G_CALLBACK(about_delete_cb), NULL); |
1401 | 1401 |
1402 gtk_window_set_title(GTK_WINDOW(about), _("About - GQview")); | 1402 gtk_window_set_title(GTK_WINDOW(about), _("About - Geeqie")); |
1403 gtk_container_set_border_width(GTK_CONTAINER(about), PREF_PAD_BORDER); | 1403 gtk_container_set_border_width(GTK_CONTAINER(about), PREF_PAD_BORDER); |
1404 | 1404 |
1405 vbox = gtk_vbox_new(FALSE, PREF_PAD_SPACE); | 1405 vbox = gtk_vbox_new(FALSE, PREF_PAD_SPACE); |
1406 gtk_container_add(GTK_CONTAINER(about), vbox); | 1406 gtk_container_add(GTK_CONTAINER(about), vbox); |
1407 gtk_widget_show(vbox); | 1407 gtk_widget_show(vbox); |
1410 button = gtk_image_new_from_pixbuf(pixbuf); | 1410 button = gtk_image_new_from_pixbuf(pixbuf); |
1411 g_object_unref(pixbuf); | 1411 g_object_unref(pixbuf); |
1412 gtk_box_pack_start(GTK_BOX(vbox), button, TRUE, TRUE, 0); | 1412 gtk_box_pack_start(GTK_BOX(vbox), button, TRUE, TRUE, 0); |
1413 gtk_widget_show(button); | 1413 gtk_widget_show(button); |
1414 | 1414 |
1415 buf = g_strdup_printf(_("GQview %s\n\nCopyright (c) %s John Ellis\nwebsite: %s\nemail: %s\n\nReleased under the GNU General Public License"), | 1415 buf = g_strdup_printf(_("Geeqie %s\n\nCopyright (c) %s John Ellis\nwebsite: %s\nemail: %s\n\nReleased under the GNU General Public License"), |
1416 VERSION, | 1416 VERSION, |
1417 "2006", | 1417 "2006", |
1418 "gqview.sourceforge.net", | 1418 "gqview.sourceforge.net", |
1419 "gqview@users.sourceforge.net"); | 1419 "gqview@users.sourceforge.net"); |
1420 label = gtk_label_new(buf); | 1420 label = gtk_label_new(buf); |