[Xfce4-commits] <xfce4-screenshooter:master> Use constants for strings in (add_item).
Jérôme Guelfucci
noreply at xfce.org
Mon Dec 28 17:06:02 CET 2009
Updating branch refs/heads/master
to b65639e0b04ef3ba86eba0fa10d245704fe50fca (commit)
from 02a13603076badc8d323b3db6d4f2351f1cdb977 (commit)
commit b65639e0b04ef3ba86eba0fa10d245704fe50fca
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Mon Dec 28 17:03:11 2009 +0100
Use constants for strings in (add_item).
lib/screenshooter-dialogs.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/screenshooter-dialogs.c b/lib/screenshooter-dialogs.c
index d79d23a..fea32e9 100644
--- a/lib/screenshooter-dialogs.c
+++ b/lib/screenshooter-dialogs.c
@@ -301,8 +301,8 @@ static void cb_combo_active_item_changed (GtkWidget *box, ScreenshotData *sd)
static void add_item (GAppInfo *app_info, GtkWidget *liststore)
{
GtkTreeIter iter;
- gchar *command = g_strdup (g_app_info_get_executable (app_info));
- gchar *name = g_strdup (g_app_info_get_name (app_info));
+ const gchar *command = g_app_info_get_executable (app_info);
+ const gchar *name = g_app_info_get_name (app_info);
GIcon *icon = g_app_info_get_icon (app_info);
GdkPixbuf *pixbuf = NULL;
GtkIconTheme *icon_theme = gtk_icon_theme_get_default ();
@@ -332,8 +332,6 @@ static void add_item (GAppInfo *app_info, GtkWidget *liststore)
-1);
/* Free the stuff */
- g_free (command);
- g_free (name);
g_object_unref (pixbuf);
g_object_unref (icon);
gtk_icon_info_free (icon_info);
More information about the Xfce4-commits
mailing list