summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--applets/preferences-applet/nautilus-preferences-applet.c18
2 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c46993d96..e376eaf68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-02-02 Ramiro Estrugo <ramiro@eazel.com>
+
+ reviewed by: Michael Engber <engber@eazel.com>
+
+ * applets/preferences-applet/nautilus-preferences-applet.c:
+ (restart_button_clicked_callback), (main):
+ Add a restart button.
+
2001-02-02 Gene Z. Ragan <gzr@eazel.com>
Fixed a small bug where I was assuming a value would be valid
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);