mirror of https://github.com/GNOME/gimp.git
added a help button.
2004-10-05 Sven Neumann <sven@gimp.org> * app/widgets/gimpfiledialog.c: added a help button.
This commit is contained in:
parent
59766a4e14
commit
94b427de98
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,7 @@
|
|||
2004-10-05 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimpfiledialog.c: added a help button.
|
||||
|
||||
2004-10-05 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* plug-ins/script-fu/siod-wrapper.c (marshall_proc_db_call):
|
||||
|
@ -44,9 +48,9 @@
|
|||
|
||||
2004-10-04 DindinX <dindinx@gimp.org>
|
||||
|
||||
* libgimp/gimpaspectpreview.c: (gimp_aspect_preview_draw_buffer) only
|
||||
apply the effect inside the current selection. This, together with my
|
||||
previous commit fixes bug #132194.
|
||||
* libgimp/gimpaspectpreview.c: (gimp_aspect_preview_draw_buffer):
|
||||
only apply the effect inside the current selection. This, together
|
||||
with my previous commit fixes bug #132194.
|
||||
|
||||
2004-10-04 DindinX <dindinx@gimp.org>
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "core/gimpprogress.h"
|
||||
|
||||
#include "config/gimpcoreconfig.h"
|
||||
#include "config/gimpguiconfig.h"
|
||||
|
||||
#include "file/file-utils.h"
|
||||
|
||||
|
@ -92,6 +93,8 @@ static void gimp_file_dialog_proc_changed (GimpFileProcView *view,
|
|||
|
||||
static void gimp_file_dialog_help_func (const gchar *help_id,
|
||||
gpointer help_data);
|
||||
static void gimp_file_dialog_help_clicked (GtkWidget *widget,
|
||||
gpointer dialog);
|
||||
|
||||
|
||||
|
||||
|
@ -329,6 +332,25 @@ gimp_file_dialog_new (Gimp *gimp,
|
|||
gimp_help_connect (GTK_WIDGET (dialog),
|
||||
gimp_file_dialog_help_func, help_id, dialog);
|
||||
|
||||
if (GIMP_GUI_CONFIG (gimp->config)->show_help_button && help_id)
|
||||
{
|
||||
GtkWidget *action_area = GTK_DIALOG (dialog)->action_area;
|
||||
GtkWidget *button = gtk_button_new_from_stock (GTK_STOCK_HELP);
|
||||
|
||||
gtk_box_pack_end (GTK_BOX (action_area), button, FALSE, TRUE, 0);
|
||||
gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (action_area),
|
||||
button, TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
g_object_set_data_full (G_OBJECT (dialog), "gimp-dialog-help-id",
|
||||
g_strdup (help_id),
|
||||
(GDestroyNotify) g_free);
|
||||
|
||||
g_signal_connect (button, "clicked",
|
||||
G_CALLBACK (gimp_file_dialog_help_clicked),
|
||||
dialog);
|
||||
}
|
||||
|
||||
gimp_file_dialog_add_preview (dialog, gimp);
|
||||
|
||||
gimp_file_dialog_add_filters (dialog, gimp, file_procs);
|
||||
|
@ -652,3 +674,11 @@ gimp_file_dialog_help_func (const gchar *help_id,
|
|||
gimp_standard_help_func (help_id, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
gimp_file_dialog_help_clicked (GtkWidget *widget,
|
||||
gpointer dialog)
|
||||
{
|
||||
gimp_standard_help_func (g_object_get_data (dialog, "gimp-dialog-help-id"),
|
||||
NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue