/[gluid]/gluid.c
ViewVC logotype

Diff of /gluid.c

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

revision 20 by ben, Sun Sep 27 14:12:12 2009 UTC revision 24 by ben, Mon Sep 28 07:18:36 2009 UTC
# Line 21  Line 21 
21  #include <stdlib.h>  #include <stdlib.h>
22  #include <glib.h>  #include <glib.h>
23  #include <gtk/gtk.h>  #include <gtk/gtk.h>
24    #include <libintl.h>
25    #include <locale.h>
26  #include "utils.h"  #include "utils.h"
27  #include "callbacks.h"  #include "callbacks.h"
28  #include "type.h"  #include "type.h"
29  #include "menu.h"  #include "menu.h"
30    #include "version.h"
31    #define _(string) gettext (string)
32    
33  int main(int argc, char** argv)  int main(int argc, char** argv)
34  {  {
# Line 47  int main(int argc, char** argv) Line 51  int main(int argc, char** argv)
51          app_data->router = NULL;          app_data->router = NULL;
52          app_data->pref_item = NULL;          app_data->pref_item = NULL;
53    
54            /*  internationalization */
55            setlocale ( LC_ALL, "" );
56            bindtextdomain ("gluid", LOCALEDIR);
57            textdomain ( "gluid" );
58    
59          /* set $HOME/.gluid as config file */          /* set $HOME/.gluid as config file */
60          app_data->config_path = g_build_path ("/", g_get_home_dir(), ".gluid", NULL);          app_data->config_path = g_build_path ("/", g_get_home_dir(), ".gluid", NULL);
61          read_config(app_data);          read_config(app_data);
# Line 86  int main(int argc, char** argv) Line 95  int main(int argc, char** argv)
95                           G_CALLBACK(status_icon_on_right_click), app_data);                           G_CALLBACK(status_icon_on_right_click), app_data);
96    
97          /* right menu items callbacks */          /* right menu items callbacks */
98          menu_append_item(right_menu, "Start", G_CALLBACK(menu_item_on_startstop), app_data);          menu_append_item(right_menu, _("Start"), G_CALLBACK(menu_item_on_startstop), app_data);
99          app_data->pref_item = menu_append_image_item(right_menu, GTK_STOCK_PREFERENCES, G_CALLBACK(menu_item_on_pref), app_data);          app_data->pref_item = menu_append_image_item(right_menu, GTK_STOCK_PREFERENCES, G_CALLBACK(menu_item_on_pref), app_data);
100          menu_append_image_item(right_menu, GTK_STOCK_ABOUT, G_CALLBACK(menu_item_on_about), app_data);          menu_append_image_item(right_menu, GTK_STOCK_ABOUT, G_CALLBACK(menu_item_on_about), app_data);
101          menu_append_image_item(right_menu, GTK_STOCK_QUIT, G_CALLBACK(menu_item_on_quit), app_data);          menu_append_image_item(right_menu, GTK_STOCK_QUIT, G_CALLBACK(menu_item_on_quit), app_data);

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

  ViewVC Help
Powered by ViewVC 1.1.26