+ (GtkAttachOptions) (GTK_FILL), 0, 0);
+ gtk_tooltips_set_tip (tooltips, fade_button_eventbox, "Whether the screen should slowly fade to black when the screen saver activates.", NULL);
+
+ fade_button = gtk_check_button_new_with_label ("Fade To Black When Blanking");
+ gtk_widget_set_name (fade_button, "fade_button");
+ gtk_widget_ref (fade_button);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "fade_button", fade_button,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (fade_button);
+ gtk_container_add (GTK_CONTAINER (fade_button_eventbox), fade_button);
+
+ unfade_button_eventbox = gtk_event_box_new ();
+ gtk_widget_set_name (unfade_button_eventbox, "unfade_button_eventbox");
+ gtk_widget_ref (unfade_button_eventbox);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "unfade_button_eventbox", unfade_button_eventbox,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (unfade_button_eventbox);
+ gtk_table_attach (GTK_TABLE (cmap_table), unfade_button_eventbox, 0, 3, 3, 4,
+ (GtkAttachOptions) (GTK_FILL),
+ (GtkAttachOptions) (GTK_FILL), 0, 0);
+ gtk_tooltips_set_tip (tooltips, unfade_button_eventbox, "Whether the screen should slowly fade in from black when the screen saver deactivates.", NULL);
+
+ unfade_button = gtk_check_button_new_with_label ("Fade From Black When Unblanking");
+ gtk_widget_set_name (unfade_button, "unfade_button");
+ gtk_widget_ref (unfade_button);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "unfade_button", unfade_button,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (unfade_button);
+ gtk_container_add (GTK_CONTAINER (unfade_button_eventbox), unfade_button);
+
+ cmap_hr = gtk_hseparator_new ();
+ gtk_widget_set_name (cmap_hr, "cmap_hr");
+ gtk_widget_ref (cmap_hr);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "cmap_hr", cmap_hr,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (cmap_hr);
+ gtk_table_attach (GTK_TABLE (cmap_table), cmap_hr, 0, 3, 1, 2,
+ (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+ (GtkAttachOptions) (GTK_FILL), 0, 2);
+
+ options_table_1 = gtk_table_new (3, 1, FALSE);
+ gtk_widget_set_name (options_table_1, "options_table_1");
+ gtk_widget_ref (options_table_1);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "options_table_1", options_table_1,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (options_table_1);
+ gtk_table_attach (GTK_TABLE (options_table), options_table_1, 0, 1, 0, 1,
+ (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+ (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);
+
+ grab_frame = gtk_frame_new ("Image Manipulation:");
+ gtk_widget_set_name (grab_frame, "grab_frame");
+ gtk_widget_ref (grab_frame);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "grab_frame", grab_frame,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (grab_frame);
+ gtk_table_attach (GTK_TABLE (options_table_1), grab_frame, 0, 1, 1, 2,
+ (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+ (GtkAttachOptions) (GTK_FILL), 0, 0);
+ gtk_container_set_border_width (GTK_CONTAINER (grab_frame), 10);
+
+ grab_table = gtk_table_new (4, 3, FALSE);
+ gtk_widget_set_name (grab_table, "grab_table");
+ gtk_widget_ref (grab_table);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "grab_table", grab_table,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (grab_table);
+ gtk_container_add (GTK_CONTAINER (grab_frame), grab_table);
+ gtk_container_set_border_width (GTK_CONTAINER (grab_table), 10);
+
+ grab_image_eventbox = gtk_event_box_new ();
+ gtk_widget_set_name (grab_image_eventbox, "grab_image_eventbox");
+ gtk_widget_ref (grab_image_eventbox);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "grab_image_eventbox", grab_image_eventbox,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (grab_image_eventbox);
+ gtk_table_attach (GTK_TABLE (grab_table), grab_image_eventbox, 0, 3, 2, 3,
+ (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+ (GtkAttachOptions) (GTK_FILL), 0, 0);
+ gtk_tooltips_set_tip (tooltips, grab_image_eventbox, "Whether the image-manipulating modes should operate on random images loaded from disk.", NULL);
+
+ grab_image_button = gtk_check_button_new_with_label ("Choose Random Image:");
+ gtk_widget_set_name (grab_image_button, "grab_image_button");
+ gtk_widget_ref (grab_image_button);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "grab_image_button", grab_image_button,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (grab_image_button);
+ gtk_container_add (GTK_CONTAINER (grab_image_eventbox), grab_image_button);
+
+ image_browse_button = gtk_button_new_with_label ("Browse");
+ gtk_widget_set_name (image_browse_button, "image_browse_button");
+ gtk_widget_ref (image_browse_button);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "image_browse_button", image_browse_button,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (image_browse_button);
+ gtk_table_attach (GTK_TABLE (grab_table), image_browse_button, 2, 3, 3, 4,
+ (GtkAttachOptions) (0),
+ (GtkAttachOptions) (0), 4, 0);
+
+ grab_video_eventbox = gtk_event_box_new ();
+ gtk_widget_set_name (grab_video_eventbox, "grab_video_eventbox");
+ gtk_widget_ref (grab_video_eventbox);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "grab_video_eventbox", grab_video_eventbox,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (grab_video_eventbox);
+ gtk_table_attach (GTK_TABLE (grab_table), grab_video_eventbox, 0, 3, 1, 2,
+ (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+ (GtkAttachOptions) (GTK_FILL), 0, 0);
+ gtk_tooltips_set_tip (tooltips, grab_video_eventbox, "Whether the image-manipulating modes should operate on images captured from the system's video input (if there is one).", NULL);
+
+ grab_video_button = gtk_check_button_new_with_label ("Grab Video Frames");
+ gtk_widget_set_name (grab_video_button, "grab_video_button");
+ gtk_widget_ref (grab_video_button);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "grab_video_button", grab_video_button,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (grab_video_button);
+ gtk_container_add (GTK_CONTAINER (grab_video_eventbox), grab_video_button);
+
+ grab_desk_eventbox = gtk_event_box_new ();
+ gtk_widget_set_name (grab_desk_eventbox, "grab_desk_eventbox");
+ gtk_widget_ref (grab_desk_eventbox);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "grab_desk_eventbox", grab_desk_eventbox,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (grab_desk_eventbox);
+ gtk_table_attach (GTK_TABLE (grab_table), grab_desk_eventbox, 0, 3, 0, 1,
+ (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
+ (GtkAttachOptions) (GTK_FILL), 0, 0);
+ gtk_tooltips_set_tip (tooltips, grab_desk_eventbox, "Whether the image-manipulating modes should be allowed to operate on an image of your desktop.", NULL);
+
+ grab_desk_button = gtk_check_button_new_with_label ("Grab Desktop Images");
+ gtk_widget_set_name (grab_desk_button, "grab_desk_button");
+ gtk_widget_ref (grab_desk_button);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "grab_desk_button", grab_desk_button,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (grab_desk_button);
+ gtk_container_add (GTK_CONTAINER (grab_desk_eventbox), grab_desk_button);
+
+ grab_dummy = gtk_label_new ("");
+ gtk_widget_set_name (grab_dummy, "grab_dummy");
+ gtk_widget_ref (grab_dummy);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "grab_dummy", grab_dummy,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (grab_dummy);
+ gtk_table_attach (GTK_TABLE (grab_table), grab_dummy, 0, 1, 3, 4,
+ (GtkAttachOptions) (GTK_SHRINK | GTK_FILL),
+ (GtkAttachOptions) (GTK_SHRINK), 0, 0);
+ gtk_label_set_justify (GTK_LABEL (grab_dummy), GTK_JUSTIFY_LEFT);
+ gtk_misc_set_padding (GTK_MISC (grab_dummy), 8, 0);
+
+ image_text = gtk_entry_new ();
+ gtk_widget_set_name (image_text, "image_text");
+ gtk_widget_ref (image_text);
+ gtk_object_set_data_full (GTK_OBJECT (xscreensaver_demo), "image_text", image_text,
+ (GtkDestroyNotify) gtk_widget_unref);
+ gtk_widget_show (image_text);
+ gtk_table_attach (GTK_TABLE (grab_table), image_text, 1, 2, 3, 4,
+ (GtkAttachOptions) (GTK_SHRINK | GTK_FILL),