Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
GIMP
Commits
00a06f94
Commit
00a06f94
authored
Jan 13, 2019
by
Ell
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: handle GimpToolWidget::message in GimpToolWidgetGroup
... by forwarding the message, if the emitting widget has focus.
parent
1ac4b85c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
app/display/gimptoolwidgetgroup.c
app/display/gimptoolwidgetgroup.c
+18
-0
No files found.
app/display/gimptoolwidgetgroup.c
View file @
00a06f94
...
...
@@ -123,6 +123,9 @@ static void gimp_tool_widget_group_child_status_coords (GimpToolWidg
gdouble
y
,
const
gchar
*
help
,
GimpToolWidgetGroup
*
group
);
static
void
gimp_tool_widget_group_child_message
(
GimpToolWidget
*
child
,
const
gchar
*
message
,
GimpToolWidgetGroup
*
group
);
static
void
gimp_tool_widget_group_child_focus_changed
(
GimpToolWidget
*
child
,
GimpToolWidgetGroup
*
group
);
...
...
@@ -201,6 +204,9 @@ gimp_tool_widget_group_init (GimpToolWidgetGroup *group)
gimp_container_add_handler
(
priv
->
children
,
"status-coords"
,
G_CALLBACK
(
gimp_tool_widget_group_child_status_coords
),
group
);
gimp_container_add_handler
(
priv
->
children
,
"message"
,
G_CALLBACK
(
gimp_tool_widget_group_child_message
),
group
);
gimp_container_add_handler
(
priv
->
children
,
"focus-changed"
,
G_CALLBACK
(
gimp_tool_widget_group_child_focus_changed
),
group
);
...
...
@@ -596,6 +602,18 @@ gimp_tool_widget_group_child_status_coords (GimpToolWidget *child,
gimp_tool_widget_set_status_coords
(
widget
,
title
,
x
,
separator
,
y
,
help
);
}
static
void
gimp_tool_widget_group_child_message
(
GimpToolWidget
*
child
,
const
gchar
*
message
,
GimpToolWidgetGroup
*
group
)
{
GimpToolWidgetGroupPrivate
*
priv
=
group
->
priv
;
GimpToolWidget
*
widget
=
GIMP_TOOL_WIDGET
(
group
);
if
(
priv
->
focus_widget
==
child
)
gimp_tool_widget_message_literal
(
widget
,
message
);
}
static
void
gimp_tool_widget_group_child_focus_changed
(
GimpToolWidget
*
child
,
GimpToolWidgetGroup
*
group
)
...
...
Ell
@ell
mentioned in commit
52a8dada
·
Jan 13, 2019
mentioned in commit
52a8dada
mentioned in commit 52a8dadaf643618d5da673d7f2387f8b0f907e3c
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment