24 |
|
|
25 |
#include <gtk/gtk.h> |
#include <gtk/gtk.h> |
26 |
#include <fluidsynth.h> |
#include <fluidsynth.h> |
27 |
|
#include <libintl.h> |
28 |
|
#include <locale.h> |
29 |
#include "utils.h" |
#include "utils.h" |
30 |
#include "type.h" |
#include "type.h" |
31 |
#include "menu.h" |
#include "menu.h" |
32 |
#include "about.h" |
#include "about.h" |
33 |
#include "version.h" |
#include "version.h" |
34 |
|
#define _(string) gettext (string) |
35 |
|
|
36 |
/* handler for the volume button drag */ |
/* handler for the volume button drag */ |
37 |
void volume_on_event (GtkWidget* instance, gdouble value, gpointer app_data) { |
void volume_on_event (GtkWidget* instance, gdouble value, gpointer app_data) { |
103 |
if (!d->mdriver) /* backend already used */ |
if (!d->mdriver) /* backend already used */ |
104 |
goto stop; |
goto stop; |
105 |
gtk_status_icon_set_tooltip(d->status_icon, "fluidsynth running"); |
gtk_status_icon_set_tooltip(d->status_icon, "fluidsynth running"); |
106 |
gtk_menu_item_set_label(instance, "Stop"); |
gtk_menu_item_set_label(instance, _("Stop")); |
107 |
} else { /* is started : stop it*/ |
} else { /* is started : stop it*/ |
108 |
stop: |
stop: |
109 |
if (d->mdriver) |
if (d->mdriver) |
123 |
d->settings = NULL; |
d->settings = NULL; |
124 |
|
|
125 |
gtk_status_icon_set_tooltip(d->status_icon, "fluidsynth stopped"); |
gtk_status_icon_set_tooltip(d->status_icon, "fluidsynth stopped"); |
126 |
gtk_menu_item_set_label(instance, "Start"); |
gtk_menu_item_set_label(instance, _("Start")); |
127 |
} |
} |
128 |
} |
} |
129 |
|
|