summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bin/playbacks_view.c1
-rw-r--r--src/bin/sinks_view.c1
-rw-r--r--src/bin/sources_view.c1
-rw-r--r--src/lib/common.h1
-rw-r--r--src/module/e_mod_main.c2
5 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/playbacks_view.c b/src/bin/playbacks_view.c
index 9cdad99..c245b51 100644
--- a/src/bin/playbacks_view.c
+++ b/src/bin/playbacks_view.c
@@ -286,6 +286,7 @@ _item_content_get(void *data, Evas_Object *obj, const char *part)
286 item = elm_slider_add(obj); 286 item = elm_slider_add(obj);
287 EINA_SAFETY_ON_NULL_RETURN_VAL(item, NULL); 287 EINA_SAFETY_ON_NULL_RETURN_VAL(item, NULL);
288 288
289 elm_slider_step_set(item, 1.0/BASE_VOLUME_STEP);
289 elm_slider_unit_format_set(item, "%1.0f"); 290 elm_slider_unit_format_set(item, "%1.0f");
290 elm_slider_indicator_format_set(item, "%1.0f"); 291 elm_slider_indicator_format_set(item, "%1.0f");
291 elm_slider_span_size_set(item, 120); 292 elm_slider_span_size_set(item, 120);
diff --git a/src/bin/sinks_view.c b/src/bin/sinks_view.c
index 55003ee..15ceee0 100644
--- a/src/bin/sinks_view.c
+++ b/src/bin/sinks_view.c
@@ -245,6 +245,7 @@ _item_content_get(void *data, Evas_Object *obj, const char *part)
245 item = elm_slider_add(obj); 245 item = elm_slider_add(obj);
246 EINA_SAFETY_ON_NULL_RETURN_VAL(item, NULL); 246 EINA_SAFETY_ON_NULL_RETURN_VAL(item, NULL);
247 247
248 elm_slider_step_set(item, 1.0/BASE_VOLUME_STEP);
248 elm_slider_unit_format_set(item, "%1.0f"); 249 elm_slider_unit_format_set(item, "%1.0f");
249 elm_slider_indicator_format_set(item, "%1.0f"); 250 elm_slider_indicator_format_set(item, "%1.0f");
250 elm_slider_span_size_set(item, 120); 251 elm_slider_span_size_set(item, 120);
diff --git a/src/bin/sources_view.c b/src/bin/sources_view.c
index e089412..0740c14 100644
--- a/src/bin/sources_view.c
+++ b/src/bin/sources_view.c
@@ -203,6 +203,7 @@ _item_content_get(void *data, Evas_Object *obj, const char *part)
203 item = elm_slider_add(obj); 203 item = elm_slider_add(obj);
204 EINA_SAFETY_ON_NULL_RETURN_VAL(item, NULL); 204 EINA_SAFETY_ON_NULL_RETURN_VAL(item, NULL);
205 205
206 elm_slider_step_set(item, 1.0/BASE_VOLUME_STEP);
206 elm_slider_unit_format_set(item, "%1.0f"); 207 elm_slider_unit_format_set(item, "%1.0f");
207 elm_slider_indicator_format_set(item, "%1.0f"); 208 elm_slider_indicator_format_set(item, "%1.0f");
208 elm_slider_span_size_set(item, 120); 209 elm_slider_span_size_set(item, 120);
diff --git a/src/lib/common.h b/src/lib/common.h
index 4c9ec9b..304ac37 100644
--- a/src/lib/common.h
+++ b/src/lib/common.h
@@ -16,6 +16,7 @@
16#include "translation.h" 16#include "translation.h"
17 17
18#define EPULSE_THEME PACKAGE_DATA_DIR"/data/themes/default.edj" 18#define EPULSE_THEME PACKAGE_DATA_DIR"/data/themes/default.edj"
19#define BASE_VOLUME_STEP 10
19 20
20EAPI extern int _log_domain; 21EAPI extern int _log_domain;
21 22
diff --git a/src/module/e_mod_main.c b/src/module/e_mod_main.c
index c6c2a36..7529687 100644
--- a/src/module/e_mod_main.c
+++ b/src/module/e_mod_main.c
@@ -5,7 +5,7 @@
5#include <epulse.h> 5#include <epulse.h>
6#include "e_mod_main.h" 6#include "e_mod_main.h"
7 7
8#define VOLUME_STEP (PA_VOLUME_NORM / 10) 8#define VOLUME_STEP (PA_VOLUME_NORM / BASE_VOLUME_STEP)
9 9
10/* module requirements */ 10/* module requirements */
11EAPI E_Module_Api e_modapi = 11EAPI E_Module_Api e_modapi =