X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=driver%2Fdemo-Gtk-widgets.c;h=4e853c99e202dd7467deea774489a787c682d0bb;hb=8afc01a67be4fbf3f1cc0fce9adf01b5289a21c6;hp=3ac260ae8cdd909926744dc9e8a987f4cd462708;hpb=6a1da724858673ac40aa13a9612340d8bed8c7b9;p=xscreensaver diff --git a/driver/demo-Gtk-widgets.c b/driver/demo-Gtk-widgets.c index 3ac260ae..4e853c99 100644 --- a/driver/demo-Gtk-widgets.c +++ b/driver/demo-Gtk-widgets.c @@ -1198,7 +1198,7 @@ create_xscreensaver_demo (void) (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (grab_image_eventbox); gtk_box_pack_start (GTK_BOX (grab_vbox), grab_image_eventbox, FALSE, FALSE, 0); - gtk_tooltips_set_tip (tooltips, grab_image_eventbox, _("Whether the image-manipulating modes should operate on random images loaded from disk."), NULL); + gtk_tooltips_set_tip (tooltips, grab_image_eventbox, _("Whether the image-manipulating modes should load image files."), NULL); grab_image_button = gtk_check_button_new_with_label (_("Choose Random Image:")); gtk_widget_set_name (grab_image_button, "grab_image_button"); @@ -1233,7 +1233,7 @@ create_xscreensaver_demo (void) (GtkDestroyNotify) gtk_widget_unref); gtk_widget_show (image_text); gtk_box_pack_start (GTK_BOX (image_hbox), image_text, TRUE, TRUE, 0); - gtk_tooltips_set_tip (tooltips, image_text, _("The directory from which images will be randomly chosen."), NULL); + gtk_tooltips_set_tip (tooltips, image_text, _("The local directory, RSS feed or Atom feed from which images will be randomly chosen."), NULL); image_browse_button = gtk_button_new_with_label (_("Browse")); gtk_widget_set_name (image_browse_button, "image_browse_button"); @@ -1431,6 +1431,7 @@ create_xscreensaver_settings_dialog (void) GtkWidget *dialog_hbuttonbox; GtkWidget *adv_button; GtkWidget *std_button; + GtkWidget *reset_button; GtkWidget *ok_cancel_hbuttonbox; GtkWidget *ok_button; GtkWidget *cancel_button; @@ -1697,6 +1698,16 @@ create_xscreensaver_settings_dialog (void) STFU GTK_WIDGET_SET_FLAGS (std_button, GTK_CAN_DEFAULT); gtk_tooltips_set_tip (tooltips, std_button, _("Back to the graphical configuration options."), NULL); + reset_button = gtk_button_new_with_label (_("Reset to Defaults")); + gtk_widget_set_name (reset_button, "reset_button"); + gtk_widget_ref (reset_button); + gtk_object_set_data_full (GTK_OBJECT (xscreensaver_settings_dialog), "reset_button", reset_button, + (GtkDestroyNotify) gtk_widget_unref); + gtk_widget_show (reset_button); + gtk_container_add (GTK_CONTAINER (dialog_hbuttonbox), reset_button); + STFU GTK_WIDGET_SET_FLAGS (reset_button, GTK_CAN_DEFAULT); + gtk_tooltips_set_tip (tooltips, reset_button, _("Reset this screen saver to the default settings."), NULL); + ok_cancel_hbuttonbox = gtk_hbutton_box_new (); gtk_widget_set_name (ok_cancel_hbuttonbox, "ok_cancel_hbuttonbox"); gtk_widget_ref (ok_cancel_hbuttonbox); @@ -1736,6 +1747,9 @@ create_xscreensaver_settings_dialog (void) gtk_signal_connect (GTK_OBJECT (std_button), "clicked", GTK_SIGNAL_FUNC (settings_std_cb), NULL); + gtk_signal_connect (GTK_OBJECT (reset_button), "clicked", + GTK_SIGNAL_FUNC (settings_reset_cb), + NULL); gtk_signal_connect (GTK_OBJECT (ok_button), "clicked", GTK_SIGNAL_FUNC (settings_ok_cb), NULL);