Changeset 24

Show
Ignore:
Timestamp:
01/25/07 13:08:04 (2 years ago)
Author:
inz
Message:

Always get key name lists with gconf_client_get_list. Fixes: #30.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • osso-xterm/trunk/configure.ac

    r21 r24  
    1 AC_INIT([osso-xterm],[0.13.mh17]) 
     1AC_INIT([osso-xterm],[0.13.mh19]) 
    22 
    33dnl Initialize automake 
  • osso-xterm/trunk/debian/changelog

    r22 r24  
     1osso-xterm (0.13.mh19) unstable; urgency=low 
     2 
     3  * Always get key name lists with gconf_client_get_list. Fixes: #30. 
     4 
     5 -- Santtu Lakkala <inz@inz.fi>  Thu, 25 Jan 2007 13:07:45 +0200 
     6 
    17osso-xterm (0.13.mh18) unstable; urgency=low 
    28 
  • osso-xterm/trunk/src/terminal-widget.c

    r21 r24  
    11601160                                guint           conn_id, 
    11611161                                GConfEntry     *entry, 
    1162                                 TerminalWidget *widget) { 
    1163     GConfValue *value; 
     1162                                TerminalWidget *widget) 
     1163
    11641164    GSList *keys; 
    11651165    GSList *key_labels; 
    1166     GSList *freeme; 
    1167  
    1168     value = gconf_entry_get_value(entry); 
    1169  
    1170     if (!strcmp(entry->key, OSSO_XTERM_GCONF_KEYS)) { 
    1171         keys = gconf_value_get_list(value); 
    1172         freeme = key_labels = gconf_client_get_list(client, 
     1166 
     1167    (void)entry; 
     1168    (void)conn_id; 
     1169 
     1170    key_labels = gconf_client_get_list(client, 
    11731171                OSSO_XTERM_GCONF_KEY_LABELS, 
    11741172                GCONF_VALUE_STRING, 
    11751173                NULL); 
    1176     } else { 
    1177         key_labels = gconf_value_get_list(value); 
    1178         freeme = keys = gconf_client_get_list(client, 
     1174    keys = gconf_client_get_list(client, 
    11791175                OSSO_XTERM_GCONF_KEYS, 
    11801176                GCONF_VALUE_STRING, 
    11811177                NULL); 
    1182     } 
    11831178 
    11841179    terminal_widget_update_keys(widget, keys, key_labels); 
    11851180 
    1186     g_slist_foreach(freeme, (GFunc)g_free, NULL); 
    1187     g_slist_free(freeme); 
     1181    g_slist_foreach(keys, (GFunc)g_free, NULL); 
     1182    g_slist_foreach(key_labels, (GFunc)g_free, NULL); 
     1183    g_slist_free(keys); 
     1184    g_slist_free(key_labels); 
    11881185} 
    11891186