~kamstrup/gtkhotkey/trunk

« back to all changes in this revision

Viewing changes to src/gtk-hotkey-key-file-registry.c

  • Committer: "Mikkel Kamstrup Erlandsen"
  • Date: 2009-10-01 08:59:31 UTC
  • Revision ID: mikkel.kamstrup@gmail.com-20091001085931-dma9e0loluq3snum
More work towards getting the 0.3 API ready. Among which implement gtk_hotkey_set_signature() with rebinding if necessary (also add this functionality for when setting the signature via the properties)

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
 
83
83
static gpointer gtk_hotkey_key_file_registry_parent_class = NULL;
84
84
 
 
85
#define GTK_HOTKEY_KEY_FILE_REGISTRY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_HOTKEY_TYPE_KEY_FILE_REGISTRY, GtkHotkeyKeyFileRegistryPrivate))
85
86
 
86
87
static
87
88
GtkHotkey*
98
99
        g_return_val_if_fail (GTK_HOTKEY_IS_KEY_FILE_REGISTRY(base), NULL);
99
100
        g_return_val_if_fail (app_id != NULL, NULL);
100
101
        g_return_val_if_fail (key_id != NULL, NULL);
 
102
        g_return_val_if_fail (error == NULL || *error == NULL, NULL);
101
103
        
102
104
        self = GTK_HOTKEY_KEY_FILE_REGISTRY (base);
103
105
        
150
152
        GKeyFile                                        *keyfile;
151
153
        
152
154
        g_return_val_if_fail (app_id != NULL, NULL);
 
155
        g_return_val_if_fail (error == NULL || *error == NULL, NULL);
153
156
        
154
157
        self = GTK_HOTKEY_KEY_FILE_REGISTRY (base);
155
158
        keyfile = get_hotkey_key_file (app_id, error);