From 1ead787cb90a9cde02623f53fdc467cf79c384ca Mon Sep 17 00:00:00 2001 From: Salvatore Iovene Date: Tue, 8 Dec 2009 18:56:08 +0200 Subject: [PATCH] Use SAVE as a button. --- maemo-tweaks-desktop.c | 57 ------------------------------------------------ maemo-tweaks.c | 2 +- 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 maemo-tweaks-desktop.c diff --git a/maemo-tweaks-desktop.c b/maemo-tweaks-desktop.c deleted file mode 100644 index 981e8d6..0000000 --- a/maemo-tweaks-desktop.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * vim:ts=4:sw=4:et:cindent:cino=(0 - */ - -#include "maemo-tweaks-module.h" -#include "maemo-tweaks-desktop.h" - -#include - -static void _build (MaemoTweaksModule *self) -{ -} - -static GtkWidget * _get_widget (MaemoTweaksModule *self) -{ - return NULL; -} - -static void module_interface_init (gpointer g_iface, gpointer iface_data) -{ - MaemoTweaksModuleInterface *iface = - (MaemoTweaksModuleInterface *) g_iface; - - iface->build = _build; - iface->get_widget = _get_widget; -} - -GType maemo_tweaks_desktop_get_type (void) -{ - static GType type = 0; - if (type == 0) { - static const GTypeInfo info = { - sizeof (MaemoTweaksModuleInterface), - NULL, /* base_init */ - NULL, /* base_finalize */ - NULL, /* class_init */ - NULL, /* class_finalize */ - NULL, /* class_data */ - sizeof (MaemoTweaksDesktop), - 0, /* n_preallocs */ - NULL /* instance_init */ - }; - static const GInterfaceInfo maemo_tweaks_module_info = { - (GInterfaceInitFunc) module_interface_init, /* interface_init */ - NULL, /* interface_finalize */ - NULL /* interface_data */ - }; - type = g_type_register_static (G_TYPE_OBJECT, - "MaemoTweaksDesktopType", - &info, 0); - g_type_add_interface_static (type, - MAEMO_TWEAKS_MODULE_TYPE, - &maemo_tweaks_module_info); - } - return type; -} - diff --git a/maemo-tweaks.c b/maemo-tweaks.c index 1fbff09..7f0b0c6 100644 --- a/maemo-tweaks.c +++ b/maemo-tweaks.c @@ -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, -- 1.7.9.5