Bug#362823: unified diff to fix underscore bug.

Andreas Henriksson andreas at fjortis.info
Sun Apr 16 02:26:24 UTC 2006


I made the changes suggested by Andreas Schaefer <AndiSHFR at gmx.net>
to fix the underscore bug in tsclient for my locally built version.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=362823

Sharing the unified diff, so you can just throw it into debian/patches/
when creating the next version of the official tsclient package...
(Also available at
http://fjortis.info/pub/debian/tsclient-underscore-fix.diff)

Regards,
Andreas Henriksson


diff -urip tsclient-0.140/src/connect.c tsclient-0.140.fixed/src/connect.c
--- tsclient-0.140/src/connect.c	2005-05-10 02:50:19.000000000 +0200
+++ tsclient-0.140.fixed/src/connect.c	2006-04-16 03:56:11.000000000 +0200
@@ -1460,7 +1460,7 @@ on_btnSaveAs_clicked                   (
 	  if (lastdelim) {
         GtkWidget *opt = lookup_widget (main_window, "optProfileLauncher");
  	    lastdelim += strlen (home) + 1;
-  	    mi = gtk_menu_item_new_with_mnemonic (lastdelim);
+  	    mi = gtk_menu_item_new_with_label (lastdelim);
         g_signal_connect (G_OBJECT(mi), "activate", G_CALLBACK(tsc_quick_pick_activate), g_strdup (lastdelim));
         gtk_container_add (GTK_CONTAINER(GTK_OPTION_MENU(opt)->menu), mi);
         gtk_widget_show (mi);
diff -urip tsclient-0.140/src/rdpfile.c tsclient-0.140.fixed/src/rdpfile.c
--- tsclient-0.140/src/rdpfile.c	2005-05-10 02:54:24.000000000 +0200
+++ tsclient-0.140.fixed/src/rdpfile.c	2006-04-16 03:57:03.000000000 +0200
@@ -943,7 +943,7 @@ int rdp_load_profile_launcher (GtkWidget
   mnu = gtk_menu_new ();
   while (lptr) {
     name = g_strdup (lptr->data);
-    mi = gtk_menu_item_new_with_mnemonic (name);
+    mi = gtk_menu_item_new_with_label (name);
     g_signal_connect (G_OBJECT (mi), "activate", G_CALLBACK (tsc_quick_pick_activate), name);
     gtk_widget_ref (GTK_WIDGET (mi));
     gtk_container_add (GTK_CONTAINER (mnu), mi);





More information about the Pkg-gnome-maintainers mailing list