Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xfce4-panel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Simon Steinbeiß
xfce4-panel
Commits
9942c3ce
Commit
9942c3ce
authored
Jun 29, 2020
by
Sean Davis
🕶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix adding known legacy items to Xfconf
parent
c217b77a
Pipeline
#1073
passed with stages
in 4 minutes and 43 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
plugins/statusnotifier/sn-config.c
plugins/statusnotifier/sn-config.c
+1
-1
plugins/statusnotifier/sn-plugin.c
plugins/statusnotifier/sn-plugin.c
+6
-0
plugins/statusnotifier/sn-plugin.h
plugins/statusnotifier/sn-plugin.h
+3
-0
plugins/statusnotifier/systray.c
plugins/statusnotifier/systray.c
+1
-1
No files found.
plugins/statusnotifier/sn-config.c
View file @
9942c3ce
...
...
@@ -523,7 +523,7 @@ sn_config_set_property (GObject *object,
tmp
=
g_ptr_array_index
(
array
,
i
);
g_assert
(
G_VALUE_HOLDS_STRING
(
tmp
));
name
=
g_value_dup_string
(
tmp
);
config
->
known_items
=
g_list_append
(
config
->
known_legacy_items
,
name
);
config
->
known_
legacy_
items
=
g_list_append
(
config
->
known_legacy_items
,
name
);
}
}
g_signal_emit
(
G_OBJECT
(
config
),
sn_config_signals
[
ITEM_LIST_CHANGED
],
0
);
...
...
plugins/statusnotifier/sn-plugin.c
View file @
9942c3ce
...
...
@@ -243,6 +243,12 @@ sn_plugin_item_added (SnPlugin *plugin,
gtk_widget_show
(
button
);
}
void
sn_plugin_legacy_item_added
(
SnPlugin
*
plugin
,
const
gchar
*
name
)
{
sn_config_add_known_legacy_item
(
plugin
->
config
,
name
);
}
static
void
...
...
plugins/statusnotifier/sn-plugin.h
View file @
9942c3ce
...
...
@@ -77,6 +77,9 @@ GType sn_plugin_get_type (void) G_GNUC_CON
void
sn_plugin_register_type
(
XfcePanelTypeModule
*
panel_type_module
);
void
sn_plugin_legacy_item_added
(
SnPlugin
*
plugin
,
const
gchar
*
name
);
G_END_DECLS
#endif
/* !__SN_PLUGIN_H__ */
plugins/statusnotifier/systray.c
View file @
9942c3ce
...
...
@@ -632,7 +632,7 @@ systray_plugin_names_get_hidden (SnPlugin *plugin,
{
/* add the new name */
plugin
->
names_ordered
=
g_slist_prepend
(
plugin
->
names_ordered
,
g_strdup
(
name
));
g_object_notify
(
G_OBJECT
(
plugin
),
"known-legacy-items"
);
sn_plugin_legacy_item_added
(
plugin
,
name
);
/* do not hide the icon */
return
FALSE
;
...
...
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