]> git.pld-linux.org Git - packages/xfce4-panel.git/commitdiff
- rel 2 auto/th/xfce4-panel-4_8_6-2
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 24 Oct 2011 10:13:44 +0000 (10:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- asking lusers "complicated" existential questions how they want theirs panel
  is not a good idea - remove "one empty panel" answer from migrate program

Changed files:
    xfce4-panel-no-empty-panel.patch -> 1.1
    xfce4-panel.spec -> 1.91

xfce4-panel-no-empty-panel.patch [new file with mode: 0644]
xfce4-panel.spec

diff --git a/xfce4-panel-no-empty-panel.patch b/xfce4-panel-no-empty-panel.patch
new file mode 100644 (file)
index 0000000..4fb41de
--- /dev/null
@@ -0,0 +1,71 @@
+--- xfce4-panel-4.8.6/migrate/main.c~  2011-09-21 20:59:09.000000000 +0200
++++ xfce4-panel-4.8.6/migrate/main.c   2011-10-24 12:09:17.247228900 +0200
+@@ -50,7 +50,6 @@
+   gint       result;
+   gint       retval = EXIT_SUCCESS;
+   gboolean   default_config_exists;
+-  gint       default_response = GTK_RESPONSE_CANCEL;
+   /* set translation domain */
+   xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
+@@ -72,14 +71,27 @@
+   /* lookup the old 4.6 config file */
+   file = xfce_resource_lookup (XFCE_RESOURCE_CONFIG, XFCE_46_CONFIG);
++  default_config_exists = g_file_test (DEFAULT_CONFIG, G_FILE_TEST_IS_REGULAR);
++  if (file == NULL)
++    {
++      /* apply default config */
++      if (default_config_exists && !migrate_default (DEFAULT_CONFIG, &error))
++        {
++          xfce_dialog_show_error (NULL, error, _("Failed to load the default configuration"));
++          g_error_free (error);
++          retval = EXIT_FAILURE;
++        }
++      xfconf_shutdown ();
++      return retval;
++    }
+   /* create question dialog */
+   dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE,
+                                    _("Welcome to the first start of the panel"));
+   gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s%s%s",
+-      file != NULL ? _("Because the panel moved to a new system for storing the "
+-                       "settings, it has to load a fresh initial configuration.") : "",
+-      file != NULL ? " " : "",
++      _("Because the panel moved to a new system for storing the "
++        "settings, it has to load a fresh initial configuration."),
++      " ",
+                      _("Choose below which setup you want for the first startup."));
+   gtk_window_set_title (GTK_WINDOW (dialog), _("Panel"));
+   gtk_window_set_icon_name (GTK_WINDOW (dialog), GTK_STOCK_PREFERENCES);
+@@ -88,26 +100,18 @@
+   button = gtk_dialog_add_button (GTK_DIALOG (dialog), _("Migrate old config"), GTK_RESPONSE_OK);
+   gtk_widget_set_tooltip_text (button, _("Migrate the old 4.6 configuration to Xfconf"));
+-  gtk_widget_set_sensitive (button, file != NULL);
+-  if (file != NULL)
+-    default_response = GTK_RESPONSE_OK;
++  gtk_widget_set_sensitive (button, TRUE);
+   button = gtk_dialog_add_button (GTK_DIALOG (dialog), _("Use default config"), GTK_RESPONSE_YES);
+   gtk_widget_set_tooltip_text (button, _("Load the default configuration"));
+-  default_config_exists = g_file_test (DEFAULT_CONFIG, G_FILE_TEST_IS_REGULAR);
+   gtk_widget_set_sensitive (button, default_config_exists);
+-  if (default_config_exists && file == NULL)
+-    default_response = GTK_RESPONSE_YES;
+-
+-  button = gtk_dialog_add_button (GTK_DIALOG (dialog), _("One empty panel"), GTK_RESPONSE_CANCEL);
+-  gtk_widget_set_tooltip_text (button, _("Start with one empty panel"));
+-  gtk_dialog_set_default_response (GTK_DIALOG (dialog), default_response);
++  gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
+   result = gtk_dialog_run (GTK_DIALOG (dialog));
+   gtk_widget_destroy (dialog);
+-  if (result == GTK_RESPONSE_OK && file != NULL)
++  if (result == GTK_RESPONSE_OK)
+     {
+       /* restore 4.6 config */
+       if (!migrate_46 (file, &error))
index a79c6e7a0f54180f2ad36a8d94f4c5650fd5fe62..14241b7af9704d280343fb7cb737ca09ef082523 100644 (file)
@@ -3,11 +3,12 @@ Summary:      Next generation panel for Xfce
 Summary(pl.UTF-8):     Panel nowej generacji dla Xfce
 Name:          xfce4-panel
 Version:       4.8.6
-Release:       1
+Release:       2
 License:       GPL v2, LGPL v2
 Group:         X11/Applications
 Source0:       http://archive.xfce.org/src/xfce/xfce4-panel/4.8/%{name}-%{version}.tar.bz2
 # Source0-md5: 9d7bf0503d5867c4044cef04bb5845b1
+Patch0:                %{name}-no-empty-panel.patch
 URL:           http://www.xfce.org/projects/xfce4-panel
 BuildRequires: dbus-glib-devel >= 0.73
 BuildRequires: docbook-dtd412-xml
@@ -91,6 +92,7 @@ Pliki nagłówkowe do budowania wtyczek panelu Xfce.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \
This page took 0.205087 seconds and 4 git commands to generate.