/[gluid]/callbacks.c
ViewVC logotype

Diff of /callbacks.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 23 by ben, Sun Sep 27 14:12:12 2009 UTC revision 24 by ben, Mon Sep 28 07:18:36 2009 UTC
# Line 24  Line 24 
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) {
# Line 100  void menu_item_on_startstop(GtkMenuItem* Line 103  void menu_item_on_startstop(GtkMenuItem*
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)
# Line 120  stop: Line 123  stop:
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    

Legend:
Removed from v.23  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26