run "nautilus --no-desktop fonts:///" if button pressed.
Wed Jan 15 12:50:34 2003 Jonathan Blandford <jrb@redhat.com> * main.c (cb_details_response): run "nautilus --no-desktop fonts:///" if button pressed. (cb_show_details): show a 'Go to font folder' button if fonts:/// exists.
This commit is contained in:
parent
d660af7b7a
commit
37731852a0
3 changed files with 34 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
Wed Jan 15 12:50:34 2003 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* main.c (cb_details_response): run "nautilus --no-desktop
|
||||
fonts:///" if button pressed.
|
||||
|
||||
(cb_show_details): show a 'Go to font folder' button if fonts:///
|
||||
exists.
|
||||
|
||||
Tue Feb 4 17:09:18 2003 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* Release 2.2.0.1
|
||||
|
|
|
@ -587,7 +587,19 @@
|
|||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button2">
|
||||
<widget class="GtkButton" id="go_to_font_button">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="label" translatable="yes">Go to font folder</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||
<property name="response_id">1</property>
|
||||
</widget>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<widget class="GtkButton" id="button3">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_default">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
|
|
|
@ -435,7 +435,7 @@ setup_dialog (GladeXML *dialog)
|
|||
GObject *peditor;
|
||||
|
||||
client = gconf_client_get_default ();
|
||||
|
||||
|
||||
gconf_client_add_dir (client, "/desktop/gnome/interface", GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
|
||||
gconf_client_add_dir (client, "/apps/nautilus/preferences", GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
|
||||
gconf_client_add_dir (client, METACITY_DIR, GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
|
||||
|
@ -670,7 +670,10 @@ cb_details_response (GtkDialog *dialog, gint response_id)
|
|||
capplet_help (GTK_WINDOW (dialog),
|
||||
"wgoscustdesk.xml",
|
||||
"goscustdesk-38");
|
||||
else
|
||||
else if (response_id == 1) {
|
||||
/* "Go to font folder" was clicked */
|
||||
g_spawn_command_line_async ("nautilus --no-desktop fonts:///", NULL);
|
||||
} else
|
||||
gtk_widget_hide (GTK_WIDGET (dialog));
|
||||
}
|
||||
|
||||
|
@ -684,8 +687,16 @@ cb_show_details (GtkWidget *button,
|
|||
GConfClient *client = gconf_client_get_default ();
|
||||
GladeXML *dialog = glade_xml_new (GLADEDIR "/font-properties.glade", "render_details", NULL);
|
||||
GtkWidget *dpi_spinner;
|
||||
GnomeVFSURI *uri;
|
||||
|
||||
details_dialog = WID ("render_details");
|
||||
uri = gnome_vfs_uri_new ("fonts:///");
|
||||
if (uri == NULL) {
|
||||
gtk_widget_hide (WID ("go_to_font_button"));
|
||||
} else {
|
||||
gnome_vfs_uri_unref (uri);
|
||||
gtk_widget_show (WID ("go_to_font_button"));
|
||||
}
|
||||
|
||||
gtk_window_set_transient_for (GTK_WINDOW (details_dialog), parent);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue