[uim-commit] r571 - trunk/helper

makeinu at freedesktop.org makeinu at freedesktop.org
Sun Feb 6 08:58:00 PST 2005


Author: makeinu
Date: 2005-02-06 08:57:56 -0800 (Sun, 06 Feb 2005)
New Revision: 571

Modified:
   trunk/helper/pref-gtk-custom-widgets.c
Log:
* helper/pref-gtk-custom-widgets.c
  - (choose_key_button_clicked_cb): Translate a message.
  - (uim_pref_gtk_set_default_value): Sorry, realloc size was wrong.


Modified: trunk/helper/pref-gtk-custom-widgets.c
===================================================================
--- trunk/helper/pref-gtk-custom-widgets.c	2005-02-06 16:38:30 UTC (rev 570)
+++ trunk/helper/pref-gtk-custom-widgets.c	2005-02-06 16:57:56 UTC (rev 571)
@@ -1469,7 +1469,7 @@
 				  GTK_MESSAGE_INFO,
 				  GTK_BUTTONS_CANCEL,
 				  _("Press keys to grab (e.g. <Control>a)"));
-  gtk_window_set_title(GTK_WINDOW(dialog), "Grabbing a key");
+  gtk_window_set_title(GTK_WINDOW(dialog), _("Grabbing keys"));
   g_signal_connect(G_OBJECT(dialog), "key-press-event",
 		   G_CALLBACK(grab_win_key_press_cb), key_entry);
   g_signal_connect(G_OBJECT(dialog), "key-release-event",
@@ -1948,7 +1948,7 @@
       free(value->as_olist[i]);
     }
     value->as_olist = realloc(value->as_olist,
-			      sizeof(struct uim_custom_choice) * (num + 1));
+			      sizeof(struct uim_custom_choice *) * (num + 1));
     for (i = 0; i < num; i++) {
       value->as_olist[i] = malloc(sizeof(struct uim_custom_choice));
       value->as_olist[i]->symbol = strdup(defval->as_olist[i]->symbol);
@@ -1966,7 +1966,7 @@
       free(value->as_key[i]);
     }
     value->as_key = realloc(value->as_key,
-			    sizeof(struct uim_custom_key) * (num + 1));
+			    sizeof(struct uim_custom_key *) * (num + 1));
     for (i = 0; i < num; i++) {
       value->as_key[i] = malloc(sizeof(struct uim_custom_key));
       value->as_key[i] = defval->as_key[i];



More information about the Uim-commit mailing list