From 5fd1ba21e41281195e39366061e0d9d0535df014 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Thu, 7 Feb 2019 12:17:22 -0500 Subject: Convert GtkStatusIcon to real applet --- mate-volume-control/gvc-stream-status-icon.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'mate-volume-control/gvc-stream-status-icon.h') diff --git a/mate-volume-control/gvc-stream-status-icon.h b/mate-volume-control/gvc-stream-status-icon.h index 7b51801..976616d 100644 --- a/mate-volume-control/gvc-stream-status-icon.h +++ b/mate-volume-control/gvc-stream-status-icon.h @@ -41,13 +41,13 @@ typedef struct _GvcStreamStatusIconPrivate GvcStreamStatusIconPrivate; struct _GvcStreamStatusIcon { - GtkStatusIcon parent; + GtkEventBox parent; GvcStreamStatusIconPrivate *priv; }; struct _GvcStreamStatusIconClass { - GtkStatusIconClass parent_class; + GtkEventBoxClass parent_class; }; GType gvc_stream_status_icon_get_type (void) G_GNUC_CONST; @@ -63,6 +63,19 @@ void gvc_stream_status_icon_set_display_name (GvcStreamStatusIc void gvc_stream_status_icon_set_control (GvcStreamStatusIcon *icon, MateMixerStreamControl *control); +void gvc_stream_status_icon_set_size (GvcStreamStatusIcon *icon, + guint size); + +void gvc_stream_status_icon_set_orient (GvcStreamStatusIcon *icon, + MatePanelAppletOrient orient); + +gboolean gvc_stream_status_icon_get_mute (GvcStreamStatusIcon *icon); + +void gvc_stream_status_icon_set_mute (GvcStreamStatusIcon *icon, + gboolean mute); + +void gvc_stream_status_icon_volume_control (GvcStreamStatusIcon *icon); + G_END_DECLS #endif /* __GVC_STREAM_STATUS_ICON_H */ -- cgit v1.2.1