Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 13333 Details for
Bug 16928
[PATCH] wrong installation directory for icon themes in control-center
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
icon-theme-installer-fix.patch
control-center-2.2.2-icon-theme-installer-fix.patch (text/plain), 2.87 KB, created by
Link M Dupont
on 2003-06-15 16:47:20 UTC
(
hide
)
Description:
icon-theme-installer-fix.patch
Filename:
MIME Type:
Creator:
Link M Dupont
Created:
2003-06-15 16:47:20 UTC
Size:
2.87 KB
patch
obsolete
>diff -ur control-center-2.2.2.orig/capplets/theme-switcher/gnome-theme-details.c control-center-2.2.2/capplets/theme-switcher/gnome-theme-details.c >--- control-center-2.2.2.orig/capplets/theme-switcher/gnome-theme-details.c 2003-03-12 08:37:58.000000000 -0800 >+++ control-center-2.2.2/capplets/theme-switcher/gnome-theme-details.c 2003-06-15 16:02:17.000000000 -0700 >@@ -318,13 +318,13 @@ > > /* window manager themes */ > widget = WID ("window_install_button"); >- g_signal_connect (G_OBJECT (widget), "clicked", G_CALLBACK (gnome_icon_theme_installer_run_cb), parent); >+ g_signal_connect (G_OBJECT (widget), "clicked", G_CALLBACK (gnome_theme_installer_run_cb), parent); > widget = WID ("window_manage_button"); > g_signal_connect (G_OBJECT (widget), "clicked", G_CALLBACK (gnome_theme_manager_window_show_manage_themes), dialog); > > /* icon themes */ > widget = WID ("icon_install_button"); >- g_signal_connect (G_OBJECT (widget), "clicked", G_CALLBACK (gnome_theme_installer_run_cb), parent); >+ g_signal_connect (G_OBJECT (widget), "clicked", G_CALLBACK (gnome_icon_theme_installer_run_cb), parent); > widget = WID ("icon_manage_button"); > g_signal_connect (G_OBJECT (widget), "clicked", G_CALLBACK (gnome_theme_manager_icon_show_manage_themes), dialog); > >diff -ur control-center-2.2.2.orig/capplets/theme-switcher/gnome-theme-installer.c control-center-2.2.2/capplets/theme-switcher/gnome-theme-installer.c >--- control-center-2.2.2.orig/capplets/theme-switcher/gnome-theme-installer.c 2003-01-15 23:40:29.000000000 -0800 >+++ control-center-2.2.2/capplets/theme-switcher/gnome-theme-installer.c 2003-06-15 16:38:39.000000000 -0700 >@@ -45,8 +45,15 @@ > gchar *path = data; > > /* this should be something more clever and nonblocking */ >- command = g_strdup_printf ("sh -c 'gzip -d -c < \"%s\" | tar xf - -C \"%s/.themes\"'", >+ if (strstr (path, ".icons") != NULL) { >+ command = g_strdup_printf ("sh -c 'gzip -d -c < \"%s\" | tar xf - -C \"%s/.icons\"'", > path, g_get_home_dir ()); >+ } >+ else { >+ command = g_strdup_printf ("sh -c 'gzip -d -c < \"%s\" | tar xf - -C \"%s/.themes\"'", >+ path, g_get_home_dir ()); >+ } >+ > if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0) > gnome_vfs_unlink (path); > g_free (command); >@@ -74,8 +81,15 @@ > gchar *path = data; > > /* this should be something more clever and nonblocking */ >- command = g_strdup_printf ("sh -c 'bzip2 -d -c < \"%s\" | tar xf - -C \"%s/.themes\"'", >- path, g_get_home_dir ()); >+ if (strstr (path, ".icons") != NULL) { >+ command = g_strdup_printf ("sh -c 'bzip2 -d -c < \"%s\" | tar xf - -C \"%s/.icons\"'", >+ path, g_get_home_dir ()); >+ } >+ else { >+ command = g_strdup_printf ("sh -c 'bzip2 -d -c < \"%s\" | tar xf - -C \"%s/.themes\"'", >+ path, g_get_home_dir ()); >+ } >+ > if (g_spawn_command_line_sync (command, NULL, NULL, &status, NULL) && status == 0) > gnome_vfs_unlink (path); > g_free (command);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 16928
: 13333