summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorRamiro Estrugo <ramiro@src.gnome.org>2001-02-03 01:04:16 +0000
committerRamiro Estrugo <ramiro@src.gnome.org>2001-02-03 01:04:16 +0000
commitcf9df316abcb262138c446c046a3e85477265dfd (patch)
tree2abb3c57421749a85568dfefc35630b12669268d /applets
parent82910256d76ed0e5bda4d25d82c1eea6c214fbac (diff)
downloadnautilus-cf9df316abcb262138c446c046a3e85477265dfd.tar.gz
reviewed by: Michael Engber <engber@eazel.com>
* applets/preferences-applet/nautilus-preferences-applet.c: (restart_button_clicked_callback), (main): Add a restart button.
Diffstat (limited to 'applets')
-rw-r--r--applets/preferences-applet/nautilus-preferences-applet.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/applets/preferences-applet/nautilus-preferences-applet.c b/applets/preferences-applet/nautilus-preferences-applet.c
index bb45172f0..67872609e 100644
--- a/applets/preferences-applet/nautilus-preferences-applet.c
+++ b/applets/preferences-applet/nautilus-preferences-applet.c
@@ -148,6 +148,15 @@ start_button_clicked_callback (GtkWidget *button,
nautilus_gnome_shell_execute ("nautilus");
}
+static void
+restart_button_clicked_callback (GtkWidget *button,
+ gpointer callback_data)
+{
+ g_return_if_fail (GTK_IS_BUTTON (button));
+
+ nautilus_gnome_shell_execute ("nautilus --restart");
+}
+
int
main (int argc, char **argv)
{
@@ -159,6 +168,7 @@ main (int argc, char **argv)
GtkWidget *smooth_graphics_button;
GtkWidget *quit_button;
GtkWidget *start_button;
+ GtkWidget *restart_button;
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
textdomain (PACKAGE);
@@ -217,6 +227,14 @@ main (int argc, char **argv)
GTK_SIGNAL_FUNC (start_button_clicked_callback),
NULL);
+ restart_button = gtk_button_new_with_label ("Restart");
+ nautilus_gtk_label_make_smaller (GTK_LABEL (GTK_BIN (restart_button)->child), 4);
+ gtk_box_pack_start (GTK_BOX (command_hbox), restart_button, TRUE, TRUE, 1);
+ gtk_signal_connect (GTK_OBJECT (restart_button),
+ "clicked",
+ GTK_SIGNAL_FUNC (restart_button_clicked_callback),
+ NULL);
+
gtk_container_add (GTK_CONTAINER (applet), main_hbox);
gtk_widget_show_all (applet);