[uim-commit] r453 - trunk/helper

tkng at freedesktop.org tkng at freedesktop.org
Mon Jan 31 22:40:53 PST 2005


Author: tkng
Date: 2005-01-31 22:40:50 -0800 (Mon, 31 Jan 2005)
New Revision: 453

Modified:
   trunk/helper/toolbar-systray-gtk.c
Log:
* helper/toolbar-systray-gtk.c:
 -(main): Changed variable name. toolbar -> icon.


Modified: trunk/helper/toolbar-systray-gtk.c
===================================================================
--- trunk/helper/toolbar-systray-gtk.c	2005-02-01 06:06:15 UTC (rev 452)
+++ trunk/helper/toolbar-systray-gtk.c	2005-02-01 06:40:50 UTC (rev 453)
@@ -1,6 +1,6 @@
 /*
 
-  Copyright (c) 2003,2004 uim Project http://uim.freedesktop.org/
+  Copyright (c) 2003-2005 uim Project http://uim.freedesktop.org/
 
   All rights reserved.
 
@@ -35,29 +35,32 @@
 #  include <config.h>
 #endif
 
-#include <uim/gettext.h>
+#include "uim/gettext.h"
+#include "uim/uim.h"
 #include <gtk/gtk.h>
 #include "eggtrayicon.h"
 
-GtkWidget *uim_helper_toolbar_new(void);
+GtkWidget *uim_helper_trayicon_new(void);
 
 int 
 main (int argc, char *argv[])
 {
-  GtkWidget *toolbar;
-  EggTrayIcon *window;
+  GtkWidget *icon;
+  EggTrayIcon *tray;
 
   gtk_set_locale();
   
+  uim_init();
+
   gtk_init( &argc, &argv );
 
-  window = egg_tray_icon_new("uim");
-  
-  toolbar = (GtkWidget*)uim_helper_toolbar_new();
+  tray = egg_tray_icon_new("uim");
 
-  gtk_container_add(GTK_CONTAINER (window), toolbar);  
-  gtk_widget_show_all(GTK_WIDGET (window));
+  gtk_widget_show_all(icon);
 
+  gtk_container_add(GTK_CONTAINER(tray), icon);
+  gtk_widget_show(GTK_WIDGET (tray));
+
   gtk_main();
   return 0;
 }



More information about the Uim-commit mailing list