Commit a6eea986 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Tooltips

parent c3a19abb
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#include <sliders.h> #include <sliders.h>
#include <dbus.h> #include <dbus.h>
#include <actions.h>
#include <string.h> #include <string.h>
gdouble value[2]; gdouble value[2];
...@@ -160,6 +161,11 @@ create_slider(const gchar * device) ...@@ -160,6 +161,11 @@ create_slider(const gchar * device)
} }
ret = gtk_hbox_new ( FALSE /*homogeneous*/, 5 /*spacing*/); ret = gtk_hbox_new ( FALSE /*homogeneous*/, 5 /*spacing*/);
if( strcmp( device , "speaker") == 0 )
gtk_widget_set_tooltip_text( GTK_WIDGET( ret ), _("Speakers volume"));
else
gtk_widget_set_tooltip_text( GTK_WIDGET( ret ), _("Mic volume"));
button[dev] = gtk_toggle_button_new(); button[dev] = gtk_toggle_button_new();
gtk_box_pack_start (GTK_BOX (ret), button[dev], FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/); gtk_box_pack_start (GTK_BOX (ret), button[dev], FALSE /*expand*/, TRUE /*fill*/, 0 /*padding*/);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment