[Goodies-commits] r7653 - in xfce4-clipman-plugin/trunk: . panel-plugin
Mike Massonnet
mmassonnet at xfce.org
Thu Jul 2 15:56:06 CEST 2009
Author: mmassonnet
Date: 2009-07-02 13:56:06 +0000 (Thu, 02 Jul 2009)
New Revision: 7653
Modified:
xfce4-clipman-plugin/trunk/ChangeLog
xfce4-clipman-plugin/trunk/panel-plugin/main-status-icon.c
Log:
Update autostart behavior
Modified: xfce4-clipman-plugin/trunk/ChangeLog
===================================================================
--- xfce4-clipman-plugin/trunk/ChangeLog 2009-07-02 13:47:25 UTC (rev 7652)
+++ xfce4-clipman-plugin/trunk/ChangeLog 2009-07-02 13:56:06 UTC (rev 7653)
@@ -1,6 +1,12 @@
2009-07-02 Mike Massonnet
-Set autostart file to false when user drops clipman from the notification area
+Update autostart behavior
+ - panel-plugin/main-status-icon.c:
+ When installing the autostart file, don't ask the user and
+ copy the file with the Hidden key set to false.
+ When dropping clipman from the notification area set the
+ autostart Hidden key to true.
+
2009-07-02 Mike Massonnet
Forgot to use plugin.h in main-panel-plugin.c
Modified: xfce4-clipman-plugin/trunk/panel-plugin/main-status-icon.c
===================================================================
--- xfce4-clipman-plugin/trunk/panel-plugin/main-status-icon.c 2009-07-02 13:47:25 UTC (rev 7652)
+++ xfce4-clipman-plugin/trunk/panel-plugin/main-status-icon.c 2009-07-02 13:56:06 UTC (rev 7653)
@@ -199,21 +199,14 @@
/* Check if the user autostart file exists */
if (g_file_test (userfile, G_FILE_TEST_EXISTS))
{
+
goto out;
}
- /* Ask the user */
- res = xfce_message_dialog (NULL, _("Autostart Clipman"), GTK_STOCK_DIALOG_QUESTION,
- _("Autostart Clipman"), _("Do you want to autostart the clipboard manager?"),
- GTK_STOCK_YES, GTK_RESPONSE_YES, GTK_STOCK_NO, GTK_RESPONSE_NO, NULL);
-
/* Copy the file */
keyfile = g_key_file_new ();
g_key_file_load_from_file (keyfile, sysfile, G_KEY_FILE_KEEP_TRANSLATIONS, NULL);
- if (res == GTK_RESPONSE_YES)
- {
- g_key_file_set_boolean (keyfile, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_HIDDEN, FALSE);
- }
+ g_key_file_set_boolean (keyfile, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_HIDDEN, FALSE);
data = g_key_file_to_data (keyfile, NULL, NULL);
g_file_set_contents (userfile, data, -1, NULL);
g_free (data);
More information about the Goodies-commits
mailing list