[libgnomekbd] avoid unnecessary load/free on image filename
- From: Sergey V. Udaltsov <svu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnomekbd] avoid unnecessary load/free on image filename
- Date: Thu, 6 Jan 2011 21:10:44 +0000 (UTC)
commit 6e0b6a5ac5ded09506e383a81d3db27e0891b367
Author: Sergey V. Udaltsov <svu gnome org>
Date: Thu Jan 6 11:28:42 2011 +0000
avoid unnecessary load/free on image filename
libgnomekbd/gkbd-configuration.c | 11 +----------
1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/libgnomekbd/gkbd-configuration.c b/libgnomekbd/gkbd-configuration.c
index 0b87928..d924c75 100644
--- a/libgnomekbd/gkbd-configuration.c
+++ b/libgnomekbd/gkbd-configuration.c
@@ -514,13 +514,7 @@ GSList *
gkbd_configuration_load_images (GkbdConfiguration * configuration)
{
int i;
- GSList *image_filename, *images;
-
- images = NULL;
- gkbd_indicator_config_load_image_filenames (&configuration->priv->
- ind_cfg,
- &configuration->priv->
- kbd_cfg);
+ GSList *image_filename, *images = NULL;
if (!configuration->priv->ind_cfg.show_flags)
return NULL;
@@ -556,9 +550,6 @@ gkbd_configuration_free_images (GkbdConfiguration * configuration,
GdkPixbuf *pi;
GSList *img_node;
- gkbd_indicator_config_free_image_filenames (&configuration->priv->
- ind_cfg);
-
while ((img_node = images) != NULL) {
pi = GDK_PIXBUF (img_node->data);
/* It can be NULL - some images may be missing */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]