summaryrefslogtreecommitdiff
path: root/mate-volume-control/gvc-applet.c
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-06-12 00:10:07 -0400
committerLuke from DC <[email protected]>2023-06-14 02:58:02 +0000
commit30f9c781e2d85140159d4f9f3232287f89b9acc5 (patch)
treebe70d1f33b2d28d0f648e4188e3fc89b9ee49adf /mate-volume-control/gvc-applet.c
parent9cb20f31afc556805c604a7be0d34f0531060c89 (diff)
downloadmate-media-30f9c781e2d85140159d4f9f3232287f89b9acc5.tar.bz2
mate-media-30f9c781e2d85140159d4f9f3232287f89b9acc5.tar.xz
Applet: port to in-process for wayland support
*Wayland cannot use xembed/GtkPlug/GtkSocket so port to in-process. *The applet then works on wayland. *Two out of process-only code blocks requiring separate windows removed
Diffstat (limited to 'mate-volume-control/gvc-applet.c')
-rw-r--r--mate-volume-control/gvc-applet.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/mate-volume-control/gvc-applet.c b/mate-volume-control/gvc-applet.c
index 3a08978..35d7e6e 100644
--- a/mate-volume-control/gvc-applet.c
+++ b/mate-volume-control/gvc-applet.c
@@ -508,12 +508,6 @@ menu_activate_open_volume_control (GtkAction *action, GvcApplet *applet)
gboolean
gvc_applet_fill (GvcApplet *applet, MatePanelApplet* applet_widget)
{
- GdkEventMask event_mask;
- GdkWindow *window;
-
- g_set_application_name (_("Volume Control Applet"));
- gtk_window_set_default_icon_name (APPLET_ICON);
-
mate_panel_applet_set_flags (applet_widget, MATE_PANEL_APPLET_EXPAND_MINOR);
applet->priv->applet = applet_widget;
@@ -545,16 +539,7 @@ gvc_applet_fill (GvcApplet *applet, MatePanelApplet* applet_widget)
gtk_container_add (GTK_CONTAINER (applet->priv->applet), GTK_WIDGET (applet->priv->box));
gtk_widget_show_all (GTK_WIDGET (applet->priv->applet));
- /* Enable 'scroll-event' signal to get through */
- window = gtk_widget_get_window (GTK_WIDGET (applet->priv->icon_input));
- event_mask = gdk_window_get_events (window);
- gdk_window_set_events (window, event_mask | GDK_SCROLL_MASK);
-
- window = gtk_widget_get_window (GTK_WIDGET (applet->priv->icon_output));
- event_mask = gdk_window_get_events (window);
- gdk_window_set_events (window, event_mask | GDK_SCROLL_MASK);
-
- /* Update icons on size/orientation changes */
+ /* Update icons on size/orientation changes*/
g_object_connect (applet->priv->applet,
"signal::change_size", gvc_applet_set_size, applet,
"signal::change_orient", gvc_applet_set_orient, applet,