summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigifab <[email protected]>2025-07-14 11:43:15 +0200
committerLuke from DC <[email protected]>2025-07-25 02:42:50 +0000
commitbdfc5ab390d75cdcf8de84e6aa954a3c02092436 (patch)
treec1711ef778ac9fb61f5afdb751bae1869f507ed1
parentd3d99646e68584212a71b9ad93cc8f0f4ceaba96 (diff)
downloadmate-media-bdfc5ab390d75cdcf8de84e6aa954a3c02092436.tar.bz2
mate-media-bdfc5ab390d75cdcf8de84e6aa954a3c02092436.tar.xz
Reverse menu order
-rw-r--r--mate-volume-control/gvc-applet.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/mate-volume-control/gvc-applet.c b/mate-volume-control/gvc-applet.c
index 93e4623..c1932d2 100644
--- a/mate-volume-control/gvc-applet.c
+++ b/mate-volume-control/gvc-applet.c
@@ -53,13 +53,16 @@ static const gchar *icon_names_input[] = {
static void menu_output_mute (GtkAction *action, GvcApplet *applet);
static void menu_activate_open_volume_control (GtkAction *action, GvcApplet *applet);
+
+// @todo like in mate-volume-control-status-icon: label = g_strdup_printf ("%s %s", _("Mute/Unmute"), icon->priv->display_name);
+// @todo mute/unmute output OR input not output AND output
static const GtkActionEntry applet_menu_actions [] = {
- { "Preferences", APPLET_ICON, N_("_Sound Preferences"), NULL, NULL, G_CALLBACK(menu_activate_open_volume_control) },
- { "MuteOutput", "audio-volume-muted", N_("Mute Output"), NULL, NULL, G_CALLBACK (menu_output_mute) }
+ { "MuteOutput", "audio-volume-muted", N_("Mute Output"), NULL, NULL, G_CALLBACK (menu_output_mute) },
+ { "Preferences", APPLET_ICON, N_("_Sound Preferences"), NULL, NULL, G_CALLBACK (menu_activate_open_volume_control) }
};
-static char *ui = "<menuitem name='Preferences' action='Preferences' />"
- "<menuitem name='MuteOutput' action='MuteOutput' />";
+static char *ui = "<menuitem name='MuteOutput' action='MuteOutput' />"
+ "<menuitem name='Preferences' action='Preferences' />";
struct _GvcAppletPrivate
{
@@ -530,6 +533,8 @@ gvc_applet_fill (GvcApplet *applet, MatePanelApplet* applet_widget)
break;
}
+ gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (applet->priv->applet)), "mate-volume-applet");
+
/* Define an initial size and orientation */
gvc_stream_applet_icon_set_size (applet->priv->icon_input, mate_panel_applet_get_size (applet->priv->applet));
gvc_stream_applet_icon_set_size (applet->priv->icon_output, mate_panel_applet_get_size (applet->priv->applet));