gtk/gtkfilesel.c gtk/gtkgamma.c use stock labels for dialog action

2002-02-08  Sven Neumann  <sven@gimp.org>

	* gtk/gtkfilesel.c
	* gtk/gtkgamma.c
	* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
This commit is contained in:
Sven Neumann 2002-02-08 17:35:06 +00:00 committed by Sven Neumann
parent e0e8197e1c
commit 0d18cf961a
10 changed files with 52 additions and 8 deletions

View File

@ -1,3 +1,9 @@
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
2002-02-08 Darin Adler <darin@bentspoon.com> 2002-02-08 Darin Adler <darin@bentspoon.com>
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node), * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),

View File

@ -1,3 +1,9 @@
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
2002-02-08 Darin Adler <darin@bentspoon.com> 2002-02-08 Darin Adler <darin@bentspoon.com>
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node), * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),

View File

@ -1,3 +1,9 @@
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
2002-02-08 Darin Adler <darin@bentspoon.com> 2002-02-08 Darin Adler <darin@bentspoon.com>
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node), * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),

View File

@ -1,3 +1,9 @@
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
2002-02-08 Darin Adler <darin@bentspoon.com> 2002-02-08 Darin Adler <darin@bentspoon.com>
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node), * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),

View File

@ -1,3 +1,9 @@
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
2002-02-08 Darin Adler <darin@bentspoon.com> 2002-02-08 Darin Adler <darin@bentspoon.com>
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node), * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),

View File

@ -1,3 +1,9 @@
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
2002-02-08 Darin Adler <darin@bentspoon.com> 2002-02-08 Darin Adler <darin@bentspoon.com>
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node), * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),

View File

@ -1,3 +1,9 @@
2002-02-08 Sven Neumann <sven@gimp.org>
* gtk/gtkfilesel.c
* gtk/gtkgamma.c
* gtk/gtkinputdialog.c: use stock labels for dialog action buttons.
2002-02-08 Darin Adler <darin@bentspoon.com> 2002-02-08 Darin Adler <darin@bentspoon.com>
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node), * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),

View File

@ -1363,7 +1363,7 @@ gtk_file_selection_create_dir (GtkWidget *widget,
gtk_widget_show (fs->fileop_entry); gtk_widget_show (fs->fileop_entry);
/* buttons */ /* buttons */
button = gtk_button_new_with_label (_("Cancel")); button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked", gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gtk_widget_destroy, (GtkSignalFunc) gtk_widget_destroy,
(gpointer) dialog); (gpointer) dialog);
@ -1492,7 +1492,7 @@ gtk_file_selection_delete_file (GtkWidget *widget,
g_free (buf); g_free (buf);
/* buttons */ /* buttons */
button = gtk_button_new_with_label (_("Cancel")); button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked", gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gtk_widget_destroy, (GtkSignalFunc) gtk_widget_destroy,
(gpointer) dialog); (gpointer) dialog);
@ -1502,7 +1502,7 @@ gtk_file_selection_delete_file (GtkWidget *widget,
gtk_widget_grab_default (button); gtk_widget_grab_default (button);
gtk_widget_show (button); gtk_widget_show (button);
button = gtk_button_new_with_label (_("Delete")); button = gtk_button_new_from_stock (GTK_STOCK_DELETE);
gtk_signal_connect (GTK_OBJECT (button), "clicked", gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gtk_file_selection_delete_file_confirmed, (GtkSignalFunc) gtk_file_selection_delete_file_confirmed,
(gpointer) fs); (gpointer) fs);
@ -1650,7 +1650,7 @@ gtk_file_selection_rename_file (GtkWidget *widget,
0, strlen (fs->fileop_file)); 0, strlen (fs->fileop_file));
/* buttons */ /* buttons */
button = gtk_button_new_with_label (_("Cancel")); button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked", gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gtk_widget_destroy, (GtkSignalFunc) gtk_widget_destroy,
(gpointer) dialog); (gpointer) dialog);

View File

@ -39,6 +39,7 @@
#include "gtkpixmap.h" #include "gtkpixmap.h"
#include "gtkradiobutton.h" #include "gtkradiobutton.h"
#include "gtksignal.h" #include "gtksignal.h"
#include "gtkstock.h"
#include "gtktable.h" #include "gtktable.h"
#include "gtkvbox.h" #include "gtkvbox.h"
#include "gtkwindow.h" #include "gtkwindow.h"
@ -416,13 +417,13 @@ button_clicked_callback (GtkWidget *w, gpointer data)
/* fill in action area: */ /* fill in action area: */
hbox = GTK_DIALOG (c->gamma_dialog)->action_area; hbox = GTK_DIALOG (c->gamma_dialog)->action_area;
button = gtk_button_new_with_label (_("Cancel")); button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
gtk_signal_connect (GTK_OBJECT (button), "clicked", gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gamma_cancel_callback, c); (GtkSignalFunc) gamma_cancel_callback, c);
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
gtk_widget_show (button); gtk_widget_show (button);
button = gtk_button_new_with_label (_("OK")); button = gtk_button_new_from_stock (GTK_STOCK_OK);
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked", gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gamma_ok_callback, c); (GtkSignalFunc) gamma_ok_callback, c);

View File

@ -51,6 +51,7 @@
#include "gtkoptionmenu.h" #include "gtkoptionmenu.h"
#include "gtkscrolledwindow.h" #include "gtkscrolledwindow.h"
#include "gtksignal.h" #include "gtksignal.h"
#include "gtkstock.h"
#include "gtktable.h" #include "gtktable.h"
#include "gtkvbox.h" #include "gtkvbox.h"
@ -327,7 +328,7 @@ gtk_input_dialog_init (GtkInputDialog *inputd)
/* We create the save button in any case, so that clients can /* We create the save button in any case, so that clients can
connect to it, without paying attention to whether it exits */ connect to it, without paying attention to whether it exits */
inputd->save_button = gtk_button_new_with_label (_("Save")); inputd->save_button = gtk_button_new_from_stock (GTK_STOCK_SAVE);
GTK_WIDGET_SET_FLAGS (inputd->save_button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS (inputd->save_button, GTK_CAN_DEFAULT);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG(inputd)->action_area), gtk_box_pack_start (GTK_BOX (GTK_DIALOG(inputd)->action_area),
inputd->save_button, TRUE, TRUE, 0); inputd->save_button, TRUE, TRUE, 0);
@ -336,7 +337,7 @@ gtk_input_dialog_init (GtkInputDialog *inputd)
if (g_list_length(device_info) <= 1) /* only core device */ if (g_list_length(device_info) <= 1) /* only core device */
gtk_widget_set_sensitive(inputd->save_button, FALSE); gtk_widget_set_sensitive(inputd->save_button, FALSE);
inputd->close_button = gtk_button_new_with_label (_("Close")); inputd->close_button = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
GTK_WIDGET_SET_FLAGS (inputd->close_button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS (inputd->close_button, GTK_CAN_DEFAULT);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG(inputd)->action_area), gtk_box_pack_start (GTK_BOX (GTK_DIALOG(inputd)->action_area),
inputd->close_button, TRUE, TRUE, 0); inputd->close_button, TRUE, TRUE, 0);