Remove ellipsis after "Go to theme folder".
2002-05-10 Anders Carlsson <andersca@gnu.org> * theme-properties.glade: Remove ellipsis after "Go to theme folder". * theme-switcher.c: (show_manage_themes): Create the .themes directory if it doesn't exist.
This commit is contained in:
parent
760753c7b1
commit
c20bc638f0
3 changed files with 36 additions and 35 deletions
|
@ -1,3 +1,19 @@
|
||||||
|
2002-05-10 Anders Carlsson <andersca@gnu.org>
|
||||||
|
|
||||||
|
* theme-properties.glade:
|
||||||
|
Remove ellipsis after "Go to theme folder".
|
||||||
|
|
||||||
|
* theme-switcher.c: (show_manage_themes):
|
||||||
|
Create the .themes directory if it doesn't exist.
|
||||||
|
|
||||||
|
2002-05-10 Anders Carlsson <andersca@gnu.org>
|
||||||
|
|
||||||
|
* theme-properties.glade:
|
||||||
|
Remove ellipsis after "Go to theme folder".
|
||||||
|
|
||||||
|
* theme-switcher.c: (show_manage_themes):
|
||||||
|
Create the .themes directory if it doesn't exist.
|
||||||
|
|
||||||
2002-05-08 Jody Goldberg <jody@gnome.org>
|
2002-05-08 Jody Goldberg <jody@gnome.org>
|
||||||
|
|
||||||
* theme-switcher.c (cb_dialog_response) : new.
|
* theme-switcher.c (cb_dialog_response) : new.
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="headers_visible">False</property>
|
<property name="headers_visible">False</property>
|
||||||
<property name="rules_hint">True</property>
|
<property name="rules_hint">False</property>
|
||||||
<property name="reorderable">False</property>
|
<property name="reorderable">False</property>
|
||||||
<property name="enable_search">True</property>
|
<property name="enable_search">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -124,23 +124,9 @@
|
||||||
<widget class="GtkButton" id="install_button">
|
<widget class="GtkButton" id="install_button">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
|
||||||
|
|
||||||
<child>
|
|
||||||
<widget class="GtkLabel" id="label6">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Install new theme...</property>
|
<property name="label" translatable="yes">_Install new theme...</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_markup">False</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
|
||||||
<property name="wrap">False</property>
|
|
||||||
<property name="selectable">False</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
<property name="yalign">0.5</property>
|
|
||||||
<property name="xpad">4</property>
|
|
||||||
<property name="ypad">0</property>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
<property name="padding">0</property>
|
||||||
|
@ -153,23 +139,9 @@
|
||||||
<widget class="GtkButton" id="manage_button">
|
<widget class="GtkButton" id="manage_button">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
<property name="label" translatable="yes">_Go to theme folder</property>
|
||||||
|
|
||||||
<child>
|
|
||||||
<widget class="GtkLabel" id="label5">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes">_Go to theme folder...</property>
|
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="use_markup">False</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
|
||||||
<property name="wrap">False</property>
|
|
||||||
<property name="selectable">False</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
<property name="yalign">0.5</property>
|
|
||||||
<property name="xpad">4</property>
|
|
||||||
<property name="ypad">0</property>
|
|
||||||
</widget>
|
|
||||||
</child>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
<property name="padding">0</property>
|
||||||
|
|
|
@ -268,8 +268,21 @@ show_install_dialog (GtkWidget *button, gpointer data)
|
||||||
static void
|
static void
|
||||||
show_manage_themes (GtkWidget *button, gpointer data)
|
show_manage_themes (GtkWidget *button, gpointer data)
|
||||||
{
|
{
|
||||||
gchar *command = g_strdup_printf ("nautilus --no-desktop %s/.themes",
|
gchar *path, *command;
|
||||||
g_get_home_dir ());
|
GnomeVFSURI *uri;
|
||||||
|
|
||||||
|
path = g_strdup_printf ("%s/.themes", g_get_home_dir ());
|
||||||
|
uri = gnome_vfs_uri_new (path);
|
||||||
|
|
||||||
|
if (!gnome_vfs_uri_exists (uri)) {
|
||||||
|
/* Create the directory */
|
||||||
|
gnome_vfs_make_directory_for_uri (uri, 775);
|
||||||
|
}
|
||||||
|
gnome_vfs_uri_unref (uri);
|
||||||
|
|
||||||
|
command = g_strdup_printf ("nautilus --no-desktop %s", path);
|
||||||
|
g_free (path);
|
||||||
|
|
||||||
g_spawn_command_line_async (command, NULL);
|
g_spawn_command_line_async (command, NULL);
|
||||||
g_free (command);
|
g_free (command);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue