summaryrefslogtreecommitdiff
path: root/mate-volume-control/gvc-combo-box.h
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-11-10 00:31:00 +0100
committerMichal Ratajsky <[email protected]>2014-11-10 00:31:00 +0100
commit83839973d9a463296b8b19a310912ef40c1ac7d8 (patch)
tree7faad9f26e825c509decb22bbad135e88089031b /mate-volume-control/gvc-combo-box.h
parentd75596c2aec0c1a63b4eff788de1826fab601c64 (diff)
downloadmate-media-83839973d9a463296b8b19a310912ef40c1ac7d8.tar.bz2
mate-media-83839973d9a463296b8b19a310912ef40c1ac7d8.tar.xz
Improve GvcComboBox and related code
The combo box now includes an own reference to MateMixerSwitch. This simplifies GvcMixerDialog and makes the code more readable. This change also includes a fix for oversized profile switch label and asynchronous updates of profile names in the HW tab.
Diffstat (limited to 'mate-volume-control/gvc-combo-box.h')
-rw-r--r--mate-volume-control/gvc-combo-box.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/mate-volume-control/gvc-combo-box.h b/mate-volume-control/gvc-combo-box.h
index 9a2f425..0767704 100644
--- a/mate-volume-control/gvc-combo-box.h
+++ b/mate-volume-control/gvc-combo-box.h
@@ -26,6 +26,8 @@
#include <glib-object.h>
#include <gtk/gtk.h>
+#include <libmatemixer/matemixer.h>
+
G_BEGIN_DECLS
#define GVC_TYPE_COMBO_BOX (gvc_combo_box_get_type ())
@@ -56,23 +58,21 @@ struct _GvcComboBoxClass
#else
GtkHBoxClass parent_class;
#endif
- void (* changed) (GvcComboBox *combobox,
- const gchar *name);
- void (* button_clicked) (GvcComboBox *combobox);
+ void (* changing) (GvcComboBox *combobox,
+ MateMixerSwitchOption *option);
+ void (* button_clicked) (GvcComboBox *combobox);
};
GType gvc_combo_box_get_type (void) G_GNUC_CONST;
-GtkWidget * gvc_combo_box_new (const gchar *label);
+GtkWidget * gvc_combo_box_new (MateMixerSwitch *swtch,
+ const gchar *label);
-void gvc_combo_box_set_size_group (GvcComboBox *combobox,
- GtkSizeGroup *group,
- gboolean symmetric);
+MateMixerSwitch * gvc_combo_box_get_switch (GvcComboBox *combobox);
-void gvc_combo_box_set_options (GvcComboBox *combobox,
- const GList *options);
-void gvc_combo_box_set_active (GvcComboBox *combobox,
- const gchar *id);
+void gvc_combo_box_set_size_group (GvcComboBox *combobox,
+ GtkSizeGroup *group,
+ gboolean symmetric);
G_END_DECLS