[Goodies-commits] r7277 - in xfce4-clipman-plugin/trunk: . panel-plugin

Mike Massonnet mmassonnet at xfce.org
Thu Apr 23 08:34:35 CEST 2009


Author: mmassonnet
Date: 2009-04-23 06:34:34 +0000 (Thu, 23 Apr 2009)
New Revision: 7277

Modified:
   xfce4-clipman-plugin/trunk/ChangeLog
   xfce4-clipman-plugin/trunk/panel-plugin/main.c
Log:
Yet another GMarkup fix

Modified: xfce4-clipman-plugin/trunk/ChangeLog
===================================================================
--- xfce4-clipman-plugin/trunk/ChangeLog	2009-04-22 20:52:57 UTC (rev 7276)
+++ xfce4-clipman-plugin/trunk/ChangeLog	2009-04-23 06:34:34 UTC (rev 7277)
@@ -1,3 +1,6 @@
+2009-04-23	Mike Massonnet
+Yet another GMarkup fix
+
 2009-04-22	Mike Massonnet
 Update documentation
 

Modified: xfce4-clipman-plugin/trunk/panel-plugin/main.c
===================================================================
--- xfce4-clipman-plugin/trunk/panel-plugin/main.c	2009-04-22 20:52:57 UTC (rev 7276)
+++ xfce4-clipman-plugin/trunk/panel-plugin/main.c	2009-04-23 06:34:34 UTC (rev 7277)
@@ -866,8 +866,7 @@
   if (XGetSelectionOwner (display, atom))
     {
       dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
-                                       _("There is already a clipboard manager running"),
-                                       NULL);
+                                       _("There is already a clipboard manager running"));
       gtk_window_set_keep_above (GTK_WINDOW (dialog), TRUE);
       gtk_dialog_run (GTK_DIALOG (dialog));
       gtk_widget_destroy (dialog);
@@ -1187,7 +1186,7 @@
   g_hash_table_iter_init (&hiter, entry->commands);
   while (g_hash_table_iter_next (&hiter, &key, &value))
     {
-      title = g_strdup_printf ("<b>%s</b>\n<small>%s</small>", (gchar *)key, (gchar *)value);
+      title = g_markup_printf_escaped ("<b>%s</b>\n<small>%s</small>", (gchar *)key, (gchar *)value);
       gtk_list_store_append (GTK_LIST_STORE (commands_model), &iter);
       gtk_list_store_set (GTK_LIST_STORE (commands_model), &iter, 0, title, 1, key, 2, value, -1);
       g_free (title);
@@ -1278,7 +1277,7 @@
   GtkTreeIter iter;
   gchar *title;
 
-  title = g_strdup_printf ("<b>%s</b>\n<small>%s</small>", (gchar *)key, (gchar *)value);
+  title = g_markup_printf_escaped ("<b>%s</b>\n<small>%s</small>", (gchar *)key, (gchar *)value);
   gtk_list_store_append (GTK_LIST_STORE (_model), &iter);
   gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, title, 1, key, 2, value, -1);
   g_free (title);
@@ -1373,9 +1372,9 @@
       return;
     }
 
-  title = g_strdup_printf ("<b>%s</b>\n<small>%s</small>",
-                           gtk_entry_get_text (GTK_ENTRY (command_name)),
-                           gtk_entry_get_text (GTK_ENTRY (command)));
+  title = g_markup_printf_escaped ("<b>%s</b>\n<small>%s</small>",
+                                   gtk_entry_get_text (GTK_ENTRY (command_name)),
+                                   gtk_entry_get_text (GTK_ENTRY (command)));
   gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, title,
                       1, gtk_entry_get_text (GTK_ENTRY (command_name)),
                       2, gtk_entry_get_text (GTK_ENTRY (command)), -1);




More information about the Goodies-commits mailing list