forked from AuroraMiddleware/gtk
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:
parent
e0e8197e1c
commit
0d18cf961a
@ -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>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
|
||||
|
@ -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>
|
||||
|
||||
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_ref_node),
|
||||
|
@ -1363,7 +1363,7 @@ gtk_file_selection_create_dir (GtkWidget *widget,
|
||||
gtk_widget_show (fs->fileop_entry);
|
||||
|
||||
/* 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",
|
||||
(GtkSignalFunc) gtk_widget_destroy,
|
||||
(gpointer) dialog);
|
||||
@ -1492,7 +1492,7 @@ gtk_file_selection_delete_file (GtkWidget *widget,
|
||||
g_free (buf);
|
||||
|
||||
/* 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",
|
||||
(GtkSignalFunc) gtk_widget_destroy,
|
||||
(gpointer) dialog);
|
||||
@ -1502,7 +1502,7 @@ gtk_file_selection_delete_file (GtkWidget *widget,
|
||||
gtk_widget_grab_default (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",
|
||||
(GtkSignalFunc) gtk_file_selection_delete_file_confirmed,
|
||||
(gpointer) fs);
|
||||
@ -1650,7 +1650,7 @@ gtk_file_selection_rename_file (GtkWidget *widget,
|
||||
0, strlen (fs->fileop_file));
|
||||
|
||||
/* 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",
|
||||
(GtkSignalFunc) gtk_widget_destroy,
|
||||
(gpointer) dialog);
|
||||
|
@ -39,6 +39,7 @@
|
||||
#include "gtkpixmap.h"
|
||||
#include "gtkradiobutton.h"
|
||||
#include "gtksignal.h"
|
||||
#include "gtkstock.h"
|
||||
#include "gtktable.h"
|
||||
#include "gtkvbox.h"
|
||||
#include "gtkwindow.h"
|
||||
@ -416,13 +417,13 @@ button_clicked_callback (GtkWidget *w, gpointer data)
|
||||
/* fill in 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",
|
||||
(GtkSignalFunc) gamma_cancel_callback, c);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), button, TRUE, TRUE, 0);
|
||||
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_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) gamma_ok_callback, c);
|
||||
|
@ -51,6 +51,7 @@
|
||||
#include "gtkoptionmenu.h"
|
||||
#include "gtkscrolledwindow.h"
|
||||
#include "gtksignal.h"
|
||||
#include "gtkstock.h"
|
||||
#include "gtktable.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
|
||||
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_box_pack_start (GTK_BOX (GTK_DIALOG(inputd)->action_area),
|
||||
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 */
|
||||
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_box_pack_start (GTK_BOX (GTK_DIALOG(inputd)->action_area),
|
||||
inputd->close_button, TRUE, TRUE, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user