Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xfce4-pulseaudio-plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bodqhrohro
xfce4-pulseaudio-plugin
Commits
eb226f92
Commit
eb226f92
authored
10 years ago
by
Andrzej
Browse files
Options
Downloads
Patches
Plain Diff
Removed extra items from the plugin menu.
parent
98e08df1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
panel-plugin/pulseaudio-plugin.c
+0
-37
0 additions, 37 deletions
panel-plugin/pulseaudio-plugin.c
with
0 additions
and
37 deletions
panel-plugin/pulseaudio-plugin.c
+
0
−
37
View file @
eb226f92
...
...
@@ -314,36 +314,10 @@ pulseaudio_plugin_mute_pressed (const char *keystring,
#endif
static
void
pulseaudio_plugin_mixer_item_activate_cb
(
PulseaudioPlugin
*
pulseaudio_plugin
,
GtkMenuItem
*
menu_item
)
{
const
gchar
*
command
;
GError
*
error
=
NULL
;
g_return_if_fail
(
IS_PULSEAUDIO_PLUGIN
(
pulseaudio_plugin
));
command
=
pulseaudio_config_get_mixer_command
(
pulseaudio_plugin
->
config
);
if
(
!
xfce_spawn_command_line_on_screen
(
gtk_widget_get_screen
(
GTK_WIDGET
(
menu_item
)),
command
,
FALSE
,
FALSE
,
&
error
))
{
xfce_dialog_show_error
(
NULL
,
error
,
_
(
"Could not execute the command
\"
%s
\"
. "
"Ensure that either the location of the command "
"is included in the PATH environment variable or "
"that you are providing the full path to the "
"command."
),
command
);
g_error_free
(
error
);
}
}
static
void
pulseaudio_plugin_construct
(
XfcePanelPlugin
*
plugin
)
{
PulseaudioPlugin
*
pulseaudio_plugin
=
PULSEAUDIO_PLUGIN
(
plugin
);
GtkWidget
*
mixer_menu_item
;
GtkWidget
*
separator
;
#ifdef HAVE_IDO
ido_init
();
...
...
@@ -377,17 +351,6 @@ pulseaudio_plugin_construct (XfcePanelPlugin *plugin)
/* volume controller */
pulseaudio_plugin
->
volume
=
pulseaudio_volume_new
();
/* menu items */
separator
=
gtk_separator_menu_item_new
();
xfce_panel_plugin_menu_insert_item
(
plugin
,
GTK_MENU_ITEM
(
separator
));
gtk_widget_show
(
separator
);
mixer_menu_item
=
gtk_menu_item_new_with_mnemonic
(
_
(
"Run Audio Mi_xer"
));
xfce_panel_plugin_menu_insert_item
(
plugin
,
GTK_MENU_ITEM
(
mixer_menu_item
));
g_signal_connect_swapped
(
G_OBJECT
(
mixer_menu_item
),
"activate"
,
G_CALLBACK
(
pulseaudio_plugin_mixer_item_activate_cb
),
pulseaudio_plugin
);
gtk_widget_show
(
mixer_menu_item
);
/* instantiate a button box */
pulseaudio_plugin
->
button
=
pulseaudio_button_new
(
pulseaudio_plugin
,
pulseaudio_plugin
->
config
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment