Use SAVE as a button.
[tweakr] / maemo-tweaks.c
index 213c1a3..7f0b0c6 100644 (file)
@@ -17,7 +17,7 @@ GtkWidget *create_dialog (GtkWindow *parent)
         ("Maemo 5 Tweaks",
          parent,
          GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR,
-         GTK_STOCK_OK,
+         GTK_STOCK_SAVE,
          GTK_RESPONSE_OK,
          GTK_STOCK_CANCEL,
          GTK_RESPONSE_CANCEL,
@@ -73,9 +73,11 @@ osso_return_t execute (osso_context_t *osso, gpointer data,
 
     gtk_widget_destroy (GTK_WIDGET (dialog));
     g_object_unref (manager);
-    g_list_foreach (sections, (GFunc) g_object_unref, NULL);
     if (sections)
+    {
+        g_list_foreach (sections, (GFunc) g_object_unref, NULL);
         g_list_free (sections);
+    }
 
     return OSSO_OK;
 }