mirror of https://github.com/GNOME/gimp.git
app: add a "status_title" to GimpCreateControllerFunc
so the status bar now says "Spiral:" or "Supernova:" instead of just "Line:".
This commit is contained in:
parent
04b407a019
commit
76644b7367
|
@ -208,6 +208,7 @@ _gimp_prop_gui_new_spiral (GObject *config,
|
|||
|
||||
set_func = create_controller_func (creator,
|
||||
GIMP_CONTROLLER_TYPE_SLIDER_LINE,
|
||||
_("Spiral: "),
|
||||
(GCallback) slider_line_callback,
|
||||
config,
|
||||
&set_data);
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
#include "gimppropgui-generic.h"
|
||||
#include "gimppropgui-supernova.h"
|
||||
|
||||
#include "gimp-intl.h"
|
||||
|
||||
|
||||
static void
|
||||
line_callback (GObject *config,
|
||||
|
@ -120,6 +122,7 @@ _gimp_prop_gui_new_supernova (GObject *config,
|
|||
|
||||
set_func = create_controller_func (creator,
|
||||
GIMP_CONTROLLER_TYPE_LINE,
|
||||
_("Supernova: "),
|
||||
(GCallback) line_callback,
|
||||
config,
|
||||
&set_data);
|
||||
|
|
|
@ -67,6 +67,7 @@ typedef GtkWidget * (* GimpCreatePickerFunc) (gpointer creator,
|
|||
|
||||
typedef GCallback (* GimpCreateControllerFunc) (gpointer creator,
|
||||
GimpControllerType controller_type,
|
||||
const gchar *status_title,
|
||||
GCallback callback,
|
||||
gpointer callback_data,
|
||||
gpointer *set_func_data);
|
||||
|
|
|
@ -74,6 +74,7 @@ static void gimp_filter_tool_slider_line_changed (GimpToolWidget *
|
|||
GimpToolWidget *
|
||||
gimp_filter_tool_create_widget (GimpFilterTool *filter_tool,
|
||||
GimpControllerType controller_type,
|
||||
const gchar *status_title,
|
||||
GCallback callback,
|
||||
gpointer callback_data,
|
||||
GCallback *set_func,
|
||||
|
@ -103,6 +104,10 @@ gimp_filter_tool_create_widget (GimpFilterTool *filter_tool,
|
|||
case GIMP_CONTROLLER_TYPE_LINE:
|
||||
controller->widget = gimp_tool_line_new (shell, 100, 100, 500, 500);
|
||||
|
||||
g_object_set (controller->widget,
|
||||
"status-title", status_title,
|
||||
NULL);
|
||||
|
||||
g_signal_connect (controller->widget, "changed",
|
||||
G_CALLBACK (gimp_filter_tool_line_changed),
|
||||
controller);
|
||||
|
@ -114,6 +119,10 @@ gimp_filter_tool_create_widget (GimpFilterTool *filter_tool,
|
|||
case GIMP_CONTROLLER_TYPE_SLIDER_LINE:
|
||||
controller->widget = gimp_tool_line_new (shell, 100, 100, 500, 500);
|
||||
|
||||
g_object_set (controller->widget,
|
||||
"status-title", status_title,
|
||||
NULL);
|
||||
|
||||
g_signal_connect (controller->widget, "changed",
|
||||
G_CALLBACK (gimp_filter_tool_slider_line_changed),
|
||||
controller);
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
GimpToolWidget * gimp_filter_tool_create_widget (GimpFilterTool *filter_tool,
|
||||
GimpControllerType controller_type,
|
||||
const gchar *status_title,
|
||||
GCallback callback,
|
||||
gpointer callback_data,
|
||||
GCallback *set_func,
|
||||
|
|
|
@ -581,6 +581,7 @@ gimp_operation_tool_sync_op (GimpOperationTool *op_tool,
|
|||
static GCallback
|
||||
gimp_operation_tool_add_controller (GimpOperationTool *op_tool,
|
||||
GimpControllerType controller_type,
|
||||
const gchar *status_title,
|
||||
GCallback callback,
|
||||
gpointer callback_data,
|
||||
gpointer *set_func_data)
|
||||
|
@ -591,6 +592,7 @@ gimp_operation_tool_add_controller (GimpOperationTool *op_tool,
|
|||
|
||||
widget = gimp_filter_tool_create_widget (filter_tool,
|
||||
controller_type,
|
||||
status_title,
|
||||
callback,
|
||||
callback_data,
|
||||
&set_func,
|
||||
|
|
|
@ -376,6 +376,8 @@ app/propgui/gimppropgui-convolution-matrix.c
|
|||
app/propgui/gimppropgui-diffration-patterns.c
|
||||
app/propgui/gimppropgui-generic.c
|
||||
app/propgui/gimppropgui-hue-saturation.c
|
||||
app/propgui/gimppropgui-spiral.c
|
||||
app/propgui/gimppropgui-supernova.c
|
||||
app/propgui/gimppropgui.c
|
||||
|
||||
app/text/gimpfont.c
|
||||
|
|
Loading…
Reference in New Issue