Logo Search packages:      
Sourcecode: ledcontrol version File versions  Download package

interface.c

/*
 * DO NOT EDIT THIS FILE - it is generated by Glade.
 */

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"

GtkWidget*
create_gled_window (void)
{
  GtkWidget *gled_window;
  GtkWidget *vbox1;
  GtkWidget *main_notebook;
  GtkWidget *vbox2;
  GtkWidget *hbox3;
  GtkWidget *eventbox3;
  GtkWidget *label6;
  GtkWidget *label42;
  GtkWidget *eventbox24;
  GtkWidget *led_use_num1;
  GtkWidget *eventbox25;
  GtkWidget *led_use_caps1;
  GtkWidget *eventbox26;
  GtkWidget *led_use_scroll1;
  GtkWidget *hseparator3;
  GtkWidget *hbox30;
  GtkWidget *scrolledwindow3;
  GtkWidget *blink_list;
  GtkWidget *eventbox20;
  GtkWidget *label57;
  GtkWidget *label58;
  GtkWidget *vbox11;
  GtkWidget *vbox12;
  GtkWidget *hbox31;
  GtkWidget *label59;
  GtkObject *blink_value_adj;
  GtkWidget *blink_value;
  GtkWidget *label60;
  GtkWidget *hbox32;
  GtkWidget *blink_add_button;
  GtkWidget *blink_change_button;
  GtkWidget *hseparator7;
  GtkWidget *hbox33;
  GtkWidget *vbox13;
  GtkWidget *blink_remove_button;
  GtkWidget *blink_move_up_button;
  GtkWidget *blink_move_down;
  GtkWidget *label1;
  GtkWidget *vbox3;
  GtkWidget *hbox27;
  GtkWidget *eventbox7;
  GtkWidget *label43;
  GtkWidget *label44;
  GtkWidget *eventbox12;
  GtkWidget *led_use_num2;
  GtkWidget *eventbox13;
  GtkWidget *led_use_caps2;
  GtkWidget *eventbox14;
  GtkWidget *led_use_scroll2;
  GtkWidget *hseparator4;
  GtkWidget *vbox5;
  GtkWidget *table1;
  GtkWidget *label48;
  GtkWidget *label47;
  GtkWidget *eventbox10;
  GtkWidget *label50;
  GtkWidget *eventbox9;
  GtkWidget *label49;
  GtkWidget *frequency_maximum_freq;
  GtkWidget *frequency_minimum_freq;
  GtkWidget *frequency_maximum_value;
  GtkWidget *frequency_minimum_value;
  GtkWidget *hseparator1;
  GtkWidget *eventbox11;
  GtkWidget *label21;
  GtkWidget *frequency_test_value;
  GtkWidget *label2;
  GtkWidget *vbox4;
  GtkWidget *hbox28;
  GtkWidget *eventbox8;
  GtkWidget *label45;
  GtkWidget *label46;
  GtkWidget *eventbox16;
  GtkWidget *led_use_num3;
  GtkWidget *eventbox17;
  GtkWidget *led_use_caps3;
  GtkWidget *eventbox18;
  GtkWidget *led_use_scroll3;
  GtkWidget *hseparator5;
  GtkWidget *vbox6;
  GtkWidget *table2;
  GtkWidget *label52;
  GtkWidget *label51;
  GtkWidget *eventbox15;
  GtkWidget *label53;
  GtkWidget *dutycycle_total_time;
  GtkWidget *dutycycle_maximum_value;
  GtkWidget *dutycycle_minimum_value;
  GtkWidget *hseparator2;
  GtkWidget *eventbox19;
  GtkWidget *label22;
  GtkWidget *dutycycle_test_value;
  GtkWidget *label3;
  GtkWidget *hbox18;
  GtkWidget *vbox8;
  GtkWidget *scrolledwindow4;
  GtkWidget *animation_list;
  GtkWidget *eventbox23;
  GtkWidget *label61;
  GtkWidget *eventbox22;
  GtkWidget *label62;
  GtkWidget *eventbox21;
  GtkWidget *label63;
  GtkWidget *hbox19;
  GtkWidget *animation_remove_button;
  GtkWidget *animation_move_up_button;
  GtkWidget *animation_move_down_button;
  GtkWidget *vseparator1;
  GtkWidget *vbox7;
  GtkWidget *vbox9;
  GtkWidget *label26;
  GtkWidget *table3;
  GtkWidget *animation_num_opt;
  GtkWidget *animation_num_opt_menu;
  GtkWidget *glade_menuitem;
  GtkWidget *animation_caps_opt;
  GtkWidget *animation_caps_opt_menu;
  GtkWidget *animation_scroll_opt;
  GtkWidget *animation_scroll_opt_menu;
  GtkWidget *label55;
  GtkWidget *label54;
  GtkWidget *label56;
  GtkWidget *hbox29;
  GtkWidget *animation_set_add_button;
  GtkWidget *animation_set_change_button;
  GtkWidget *hseparator6;
  GtkWidget *vbox10;
  GtkWidget *label33;
  GtkWidget *hbox23;
  GtkObject *animation_delay_value_adj;
  GtkWidget *animation_delay_value;
  GtkWidget *label34;
  GtkWidget *animation_delay_add;
  GtkWidget *animation_delay_change;
  GtkWidget *label5;
  GtkWidget *hbox2;
  GtkWidget *eventbox2;
  GtkWidget *label4;
  GtkWidget *command_combo;
  GtkWidget *command_entry;
  GtkWidget *hbox6;
  GtkWidget *hbox34;
  GtkWidget *test_button;
  GtkWidget *auto_test_button;
  GtkWidget *eventbox1;
  GtkWidget *badcommand_label;
  GtkWidget *quit_button;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  gled_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (gled_window), "gled_window", gled_window);
  gtk_container_set_border_width (GTK_CONTAINER (gled_window), 3);
  gtk_window_set_title (GTK_WINDOW (gled_window), "gled");

  vbox1 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox1);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox1", vbox1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox1);
  gtk_container_add (GTK_CONTAINER (gled_window), vbox1);

  main_notebook = gtk_notebook_new ();
  gtk_widget_ref (main_notebook);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "main_notebook", main_notebook,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (main_notebook);
  gtk_box_pack_start (GTK_BOX (vbox1), main_notebook, TRUE, TRUE, 0);

  vbox2 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox2);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox2", vbox2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox2);
  gtk_container_add (GTK_CONTAINER (main_notebook), vbox2);

  hbox3 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox3", hbox3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox3);
  gtk_box_pack_start (GTK_BOX (vbox2), hbox3, FALSE, TRUE, 0);

  eventbox3 = gtk_event_box_new ();
  gtk_widget_ref (eventbox3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox3", eventbox3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox3);
  gtk_box_pack_start (GTK_BOX (hbox3), eventbox3, FALSE, FALSE, 0);

  label6 = gtk_label_new ("LEDs to use:");
  gtk_widget_ref (label6);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label6", label6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label6);
  gtk_container_add (GTK_CONTAINER (eventbox3), label6);

  label42 = gtk_label_new ("");
  gtk_widget_ref (label42);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label42", label42,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label42);
  gtk_box_pack_start (GTK_BOX (hbox3), label42, TRUE, TRUE, 0);

  eventbox24 = gtk_event_box_new ();
  gtk_widget_ref (eventbox24);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox24", eventbox24,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox24);
  gtk_box_pack_start (GTK_BOX (hbox3), eventbox24, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox24, "Use highest priority Num Lock (n9)", NULL);

  led_use_num1 = gtk_check_button_new_with_label ("Num Lock");
  gtk_widget_ref (led_use_num1);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "led_use_num1", led_use_num1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (led_use_num1);
  gtk_container_add (GTK_CONTAINER (eventbox24), led_use_num1);

  eventbox25 = gtk_event_box_new ();
  gtk_widget_ref (eventbox25);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox25", eventbox25,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox25);
  gtk_box_pack_start (GTK_BOX (hbox3), eventbox25, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox25, "Use highest priority Caps Lock (c9)", NULL);

  led_use_caps1 = gtk_check_button_new_with_label ("Caps Lock");
  gtk_widget_ref (led_use_caps1);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "led_use_caps1", led_use_caps1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (led_use_caps1);
  gtk_container_add (GTK_CONTAINER (eventbox25), led_use_caps1);

  eventbox26 = gtk_event_box_new ();
  gtk_widget_ref (eventbox26);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox26", eventbox26,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox26);
  gtk_box_pack_start (GTK_BOX (hbox3), eventbox26, FALSE, FALSE, 2);
  gtk_tooltips_set_tip (tooltips, eventbox26, "Use highest priority Scroll Lock (s9)", NULL);

  led_use_scroll1 = gtk_check_button_new_with_label ("Scroll Lock");
  gtk_widget_ref (led_use_scroll1);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "led_use_scroll1", led_use_scroll1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (led_use_scroll1);
  gtk_container_add (GTK_CONTAINER (eventbox26), led_use_scroll1);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (led_use_scroll1), TRUE);

  hseparator3 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hseparator3", hseparator3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator3);
  gtk_box_pack_start (GTK_BOX (vbox2), hseparator3, FALSE, TRUE, 5);

  hbox30 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox30);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox30", hbox30,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox30);
  gtk_box_pack_start (GTK_BOX (vbox2), hbox30, TRUE, TRUE, 0);

  scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "scrolledwindow3", scrolledwindow3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow3);
  gtk_box_pack_start (GTK_BOX (hbox30), scrolledwindow3, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  blink_list = gtk_clist_new (2);
  gtk_widget_ref (blink_list);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "blink_list", blink_list,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (blink_list);
  gtk_container_add (GTK_CONTAINER (scrolledwindow3), blink_list);
  gtk_clist_set_column_width (GTK_CLIST (blink_list), 0, 79);
  gtk_clist_set_column_width (GTK_CLIST (blink_list), 1, 80);
  gtk_clist_column_titles_show (GTK_CLIST (blink_list));

  eventbox20 = gtk_event_box_new ();
  gtk_widget_ref (eventbox20);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox20", eventbox20,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox20);
  gtk_clist_set_column_widget (GTK_CLIST (blink_list), 0, eventbox20);
  gtk_tooltips_set_tip (tooltips, eventbox20, "Whether the value is mainly delay ON or OFF. If the last value is not OFF, then everything wraps switching these around.", NULL);

  label57 = gtk_label_new ("ON/OFF");
  gtk_widget_ref (label57);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label57", label57,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label57);
  gtk_container_add (GTK_CONTAINER (eventbox20), label57);

  label58 = gtk_label_new ("Delay (ms)");
  gtk_widget_ref (label58);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label58", label58,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label58);
  gtk_clist_set_column_widget (GTK_CLIST (blink_list), 1, label58);

  vbox11 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox11);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox11", vbox11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox11);
  gtk_box_pack_start (GTK_BOX (hbox30), vbox11, FALSE, TRUE, 5);

  vbox12 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox12);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox12", vbox12,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox12);
  gtk_box_pack_start (GTK_BOX (vbox11), vbox12, FALSE, TRUE, 0);

  hbox31 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox31);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox31", hbox31,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox31);
  gtk_box_pack_start (GTK_BOX (vbox12), hbox31, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox31), 5);

  label59 = gtk_label_new ("Delay:");
  gtk_widget_ref (label59);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label59", label59,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label59);
  gtk_box_pack_start (GTK_BOX (hbox31), label59, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (label59), 5, 0);

  blink_value_adj = gtk_adjustment_new (100, 0, 10000, 50, 100, 1);
  blink_value = gtk_spin_button_new (GTK_ADJUSTMENT (blink_value_adj), 1, 0);
  gtk_widget_ref (blink_value);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "blink_value", blink_value,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (blink_value);
  gtk_box_pack_start (GTK_BOX (hbox31), blink_value, TRUE, TRUE, 0);
  gtk_widget_set_usize (blink_value, 50, -2);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (blink_value), TRUE);

  label60 = gtk_label_new ("ms");
  gtk_widget_ref (label60);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label60", label60,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label60);
  gtk_box_pack_start (GTK_BOX (hbox31), label60, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label60), GTK_JUSTIFY_LEFT);
  gtk_misc_set_alignment (GTK_MISC (label60), 7.45058e-09, 0.5);
  gtk_misc_set_padding (GTK_MISC (label60), 5, 0);

  hbox32 = gtk_hbox_new (TRUE, 10);
  gtk_widget_ref (hbox32);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox32", hbox32,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox32);
  gtk_box_pack_start (GTK_BOX (vbox12), hbox32, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox32), 4);

  blink_add_button = gtk_button_new_with_label ("Add");
  gtk_widget_ref (blink_add_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "blink_add_button", blink_add_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (blink_add_button);
  gtk_box_pack_start (GTK_BOX (hbox32), blink_add_button, TRUE, TRUE, 0);

  blink_change_button = gtk_button_new_with_label ("Change");
  gtk_widget_ref (blink_change_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "blink_change_button", blink_change_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (blink_change_button);
  gtk_box_pack_start (GTK_BOX (hbox32), blink_change_button, TRUE, TRUE, 0);

  hseparator7 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator7);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hseparator7", hseparator7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator7);
  gtk_box_pack_start (GTK_BOX (vbox11), hseparator7, FALSE, FALSE, 4);

  hbox33 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox33);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox33", hbox33,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox33);
  gtk_box_pack_start (GTK_BOX (vbox11), hbox33, FALSE, FALSE, 0);

  vbox13 = gtk_vbox_new (FALSE, 4);
  gtk_widget_ref (vbox13);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox13", vbox13,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox13);
  gtk_box_pack_start (GTK_BOX (hbox33), vbox13, FALSE, FALSE, 0);

  blink_remove_button = gtk_button_new_with_label ("Remove");
  gtk_widget_ref (blink_remove_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "blink_remove_button", blink_remove_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (blink_remove_button);
  gtk_box_pack_start (GTK_BOX (vbox13), blink_remove_button, FALSE, FALSE, 0);

  blink_move_up_button = gtk_button_new_with_label ("Move up");
  gtk_widget_ref (blink_move_up_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "blink_move_up_button", blink_move_up_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (blink_move_up_button);
  gtk_box_pack_start (GTK_BOX (vbox13), blink_move_up_button, FALSE, FALSE, 0);

  blink_move_down = gtk_button_new_with_label ("Move down");
  gtk_widget_ref (blink_move_down);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "blink_move_down", blink_move_down,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (blink_move_down);
  gtk_box_pack_start (GTK_BOX (vbox13), blink_move_down, FALSE, FALSE, 0);

  label1 = gtk_label_new ("blink");
  gtk_widget_ref (label1);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label1", label1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label1);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (main_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (main_notebook), 0), label1);

  vbox3 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox3", vbox3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox3);
  gtk_container_add (GTK_CONTAINER (main_notebook), vbox3);

  hbox27 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox27);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox27", hbox27,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox27);
  gtk_box_pack_start (GTK_BOX (vbox3), hbox27, FALSE, TRUE, 0);

  eventbox7 = gtk_event_box_new ();
  gtk_widget_ref (eventbox7);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox7", eventbox7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox7);
  gtk_box_pack_start (GTK_BOX (hbox27), eventbox7, FALSE, FALSE, 0);

  label43 = gtk_label_new ("LEDs to use:");
  gtk_widget_ref (label43);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label43", label43,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label43);
  gtk_container_add (GTK_CONTAINER (eventbox7), label43);

  label44 = gtk_label_new ("");
  gtk_widget_ref (label44);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label44", label44,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label44);
  gtk_box_pack_start (GTK_BOX (hbox27), label44, TRUE, TRUE, 0);

  eventbox12 = gtk_event_box_new ();
  gtk_widget_ref (eventbox12);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox12", eventbox12,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox12);
  gtk_box_pack_start (GTK_BOX (hbox27), eventbox12, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox12, "Use highest priority Num Lock (n9)", NULL);

  led_use_num2 = gtk_check_button_new_with_label ("Num Lock");
  gtk_widget_ref (led_use_num2);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "led_use_num2", led_use_num2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (led_use_num2);
  gtk_container_add (GTK_CONTAINER (eventbox12), led_use_num2);

  eventbox13 = gtk_event_box_new ();
  gtk_widget_ref (eventbox13);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox13", eventbox13,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox13);
  gtk_box_pack_start (GTK_BOX (hbox27), eventbox13, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox13, "Use highest priority Caps Lock (c9)", NULL);

  led_use_caps2 = gtk_check_button_new_with_label ("Caps Lock");
  gtk_widget_ref (led_use_caps2);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "led_use_caps2", led_use_caps2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (led_use_caps2);
  gtk_container_add (GTK_CONTAINER (eventbox13), led_use_caps2);

  eventbox14 = gtk_event_box_new ();
  gtk_widget_ref (eventbox14);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox14", eventbox14,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox14);
  gtk_box_pack_start (GTK_BOX (hbox27), eventbox14, FALSE, FALSE, 2);
  gtk_tooltips_set_tip (tooltips, eventbox14, "Use highest priority Scroll Lock (s9)", NULL);

  led_use_scroll2 = gtk_check_button_new_with_label ("Scroll Lock");
  gtk_widget_ref (led_use_scroll2);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "led_use_scroll2", led_use_scroll2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (led_use_scroll2);
  gtk_container_add (GTK_CONTAINER (eventbox14), led_use_scroll2);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (led_use_scroll2), TRUE);

  hseparator4 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator4);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hseparator4", hseparator4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator4);
  gtk_box_pack_start (GTK_BOX (vbox3), hseparator4, FALSE, TRUE, 5);

  vbox5 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox5);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox5", vbox5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox5);
  gtk_box_pack_start (GTK_BOX (vbox3), vbox5, TRUE, TRUE, 0);

  table1 = gtk_table_new (4, 2, FALSE);
  gtk_widget_ref (table1);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "table1", table1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table1);
  gtk_box_pack_start (GTK_BOX (vbox5), table1, TRUE, TRUE, 0);

  label48 = gtk_label_new ("Maximum value:");
  gtk_widget_ref (label48);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label48", label48,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label48);
  gtk_table_attach (GTK_TABLE (table1), label48, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 5, 0);

  label47 = gtk_label_new ("Minimum value:");
  gtk_widget_ref (label47);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label47", label47,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label47);
  gtk_table_attach (GTK_TABLE (table1), label47, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 5, 0);

  eventbox10 = gtk_event_box_new ();
  gtk_widget_ref (eventbox10);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox10", eventbox10,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox10);
  gtk_table_attach (GTK_TABLE (table1), eventbox10, 0, 1, 3, 4,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 5, 0);
  gtk_tooltips_set_tip (tooltips, eventbox10, "Time for ON/OFF when value == maximum value (must be smaller than minimum frequency)", NULL);

  label50 = gtk_label_new ("Maximum frequency (ms):");
  gtk_widget_ref (label50);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label50", label50,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label50);
  gtk_container_add (GTK_CONTAINER (eventbox10), label50);

  eventbox9 = gtk_event_box_new ();
  gtk_widget_ref (eventbox9);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox9", eventbox9,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox9);
  gtk_table_attach (GTK_TABLE (table1), eventbox9, 0, 1, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 5, 0);
  gtk_tooltips_set_tip (tooltips, eventbox9, "Time for ON/OFF when value == minimum value", NULL);

  label49 = gtk_label_new ("Minimum frequency (ms):");
  gtk_widget_ref (label49);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label49", label49,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label49);
  gtk_container_add (GTK_CONTAINER (eventbox9), label49);

  frequency_maximum_freq = gtk_entry_new ();
  gtk_widget_ref (frequency_maximum_freq);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "frequency_maximum_freq", frequency_maximum_freq,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frequency_maximum_freq);
  gtk_table_attach (GTK_TABLE (table1), frequency_maximum_freq, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 2, 1);
  gtk_entry_set_text (GTK_ENTRY (frequency_maximum_freq), "100");

  frequency_minimum_freq = gtk_entry_new ();
  gtk_widget_ref (frequency_minimum_freq);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "frequency_minimum_freq", frequency_minimum_freq,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frequency_minimum_freq);
  gtk_table_attach (GTK_TABLE (table1), frequency_minimum_freq, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 2, 1);
  gtk_entry_set_text (GTK_ENTRY (frequency_minimum_freq), "1000");

  frequency_maximum_value = gtk_entry_new ();
  gtk_widget_ref (frequency_maximum_value);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "frequency_maximum_value", frequency_maximum_value,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frequency_maximum_value);
  gtk_table_attach (GTK_TABLE (table1), frequency_maximum_value, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 2, 1);
  gtk_entry_set_text (GTK_ENTRY (frequency_maximum_value), "1.00");

  frequency_minimum_value = gtk_entry_new ();
  gtk_widget_ref (frequency_minimum_value);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "frequency_minimum_value", frequency_minimum_value,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frequency_minimum_value);
  gtk_table_attach (GTK_TABLE (table1), frequency_minimum_value, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 2, 1);
  gtk_entry_set_text (GTK_ENTRY (frequency_minimum_value), "0.00");

  hseparator1 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator1);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hseparator1", hseparator1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator1);
  gtk_box_pack_start (GTK_BOX (vbox5), hseparator1, FALSE, TRUE, 5);

  eventbox11 = gtk_event_box_new ();
  gtk_widget_ref (eventbox11);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox11", eventbox11,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox11);
  gtk_box_pack_start (GTK_BOX (vbox5), eventbox11, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox11, "Value to test command with", NULL);

  label21 = gtk_label_new ("Test value:");
  gtk_widget_ref (label21);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label21", label21,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label21);
  gtk_container_add (GTK_CONTAINER (eventbox11), label21);
  gtk_misc_set_alignment (GTK_MISC (label21), 0, 0.5);

  frequency_test_value = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, -0.1, 1.1, 0.01, 0.1, 0)));
  gtk_widget_ref (frequency_test_value);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "frequency_test_value", frequency_test_value,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (frequency_test_value);
  gtk_box_pack_start (GTK_BOX (vbox5), frequency_test_value, TRUE, TRUE, 0);
  gtk_scale_set_digits (GTK_SCALE (frequency_test_value), 2);
  gtk_range_set_update_policy (GTK_RANGE (frequency_test_value), GTK_UPDATE_DELAYED);

  label2 = gtk_label_new ("frequency");
  gtk_widget_ref (label2);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label2", label2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label2);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (main_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (main_notebook), 1), label2);

  vbox4 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox4);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox4", vbox4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox4);
  gtk_container_add (GTK_CONTAINER (main_notebook), vbox4);

  hbox28 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox28);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox28", hbox28,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox28);
  gtk_box_pack_start (GTK_BOX (vbox4), hbox28, FALSE, TRUE, 0);

  eventbox8 = gtk_event_box_new ();
  gtk_widget_ref (eventbox8);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox8", eventbox8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox8);
  gtk_box_pack_start (GTK_BOX (hbox28), eventbox8, FALSE, FALSE, 0);

  label45 = gtk_label_new ("LEDs to use:");
  gtk_widget_ref (label45);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label45", label45,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label45);
  gtk_container_add (GTK_CONTAINER (eventbox8), label45);

  label46 = gtk_label_new ("");
  gtk_widget_ref (label46);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label46", label46,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label46);
  gtk_box_pack_start (GTK_BOX (hbox28), label46, TRUE, TRUE, 0);

  eventbox16 = gtk_event_box_new ();
  gtk_widget_ref (eventbox16);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox16", eventbox16,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox16);
  gtk_box_pack_start (GTK_BOX (hbox28), eventbox16, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox16, "Use highest priority Num Lock (n9)", NULL);

  led_use_num3 = gtk_check_button_new_with_label ("Num Lock");
  gtk_widget_ref (led_use_num3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "led_use_num3", led_use_num3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (led_use_num3);
  gtk_container_add (GTK_CONTAINER (eventbox16), led_use_num3);

  eventbox17 = gtk_event_box_new ();
  gtk_widget_ref (eventbox17);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox17", eventbox17,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox17);
  gtk_box_pack_start (GTK_BOX (hbox28), eventbox17, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox17, "Use highest priority Caps Lock (c9)", NULL);

  led_use_caps3 = gtk_check_button_new_with_label ("Caps Lock");
  gtk_widget_ref (led_use_caps3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "led_use_caps3", led_use_caps3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (led_use_caps3);
  gtk_container_add (GTK_CONTAINER (eventbox17), led_use_caps3);

  eventbox18 = gtk_event_box_new ();
  gtk_widget_ref (eventbox18);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox18", eventbox18,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox18);
  gtk_box_pack_start (GTK_BOX (hbox28), eventbox18, FALSE, FALSE, 2);
  gtk_tooltips_set_tip (tooltips, eventbox18, "Use highest priority Scroll Lock (s9)", NULL);

  led_use_scroll3 = gtk_check_button_new_with_label ("Scroll Lock");
  gtk_widget_ref (led_use_scroll3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "led_use_scroll3", led_use_scroll3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (led_use_scroll3);
  gtk_container_add (GTK_CONTAINER (eventbox18), led_use_scroll3);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (led_use_scroll3), TRUE);

  hseparator5 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator5);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hseparator5", hseparator5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator5);
  gtk_box_pack_start (GTK_BOX (vbox4), hseparator5, FALSE, TRUE, 5);

  vbox6 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox6);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox6", vbox6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox6);
  gtk_box_pack_start (GTK_BOX (vbox4), vbox6, TRUE, TRUE, 0);

  table2 = gtk_table_new (3, 2, FALSE);
  gtk_widget_ref (table2);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "table2", table2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table2);
  gtk_box_pack_start (GTK_BOX (vbox6), table2, TRUE, TRUE, 5);

  label52 = gtk_label_new ("Maximum value:");
  gtk_widget_ref (label52);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label52", label52,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label52);
  gtk_table_attach (GTK_TABLE (table2), label52, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 10, 0);

  label51 = gtk_label_new ("Minimum value:");
  gtk_widget_ref (label51);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label51", label51,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label51);
  gtk_table_attach (GTK_TABLE (table2), label51, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 10, 0);

  eventbox15 = gtk_event_box_new ();
  gtk_widget_ref (eventbox15);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox15", eventbox15,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox15);
  gtk_table_attach (GTK_TABLE (table2), eventbox15, 0, 1, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 10, 0);
  gtk_tooltips_set_tip (tooltips, eventbox15, "Total time for duty cycle in ms", NULL);

  label53 = gtk_label_new ("Total time (ms):");
  gtk_widget_ref (label53);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label53", label53,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label53);
  gtk_container_add (GTK_CONTAINER (eventbox15), label53);

  dutycycle_total_time = gtk_entry_new ();
  gtk_widget_ref (dutycycle_total_time);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "dutycycle_total_time", dutycycle_total_time,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dutycycle_total_time);
  gtk_table_attach (GTK_TABLE (table2), dutycycle_total_time, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 2, 2);
  gtk_entry_set_text (GTK_ENTRY (dutycycle_total_time), "100");

  dutycycle_maximum_value = gtk_entry_new ();
  gtk_widget_ref (dutycycle_maximum_value);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "dutycycle_maximum_value", dutycycle_maximum_value,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dutycycle_maximum_value);
  gtk_table_attach (GTK_TABLE (table2), dutycycle_maximum_value, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 2, 2);
  gtk_entry_set_text (GTK_ENTRY (dutycycle_maximum_value), "1.00");

  dutycycle_minimum_value = gtk_entry_new ();
  gtk_widget_ref (dutycycle_minimum_value);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "dutycycle_minimum_value", dutycycle_minimum_value,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dutycycle_minimum_value);
  gtk_table_attach (GTK_TABLE (table2), dutycycle_minimum_value, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 2, 2);
  gtk_entry_set_text (GTK_ENTRY (dutycycle_minimum_value), "0.00");

  hseparator2 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator2);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hseparator2", hseparator2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator2);
  gtk_box_pack_start (GTK_BOX (vbox6), hseparator2, FALSE, TRUE, 5);

  eventbox19 = gtk_event_box_new ();
  gtk_widget_ref (eventbox19);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox19", eventbox19,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox19);
  gtk_box_pack_start (GTK_BOX (vbox6), eventbox19, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox19, "Value to test command with", NULL);

  label22 = gtk_label_new ("Test value:");
  gtk_widget_ref (label22);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label22", label22,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label22);
  gtk_container_add (GTK_CONTAINER (eventbox19), label22);
  gtk_misc_set_alignment (GTK_MISC (label22), 7.45058e-09, 0.5);

  dutycycle_test_value = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (0, -0.1, 1.1, 0.1, 1, 0)));
  gtk_widget_ref (dutycycle_test_value);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "dutycycle_test_value", dutycycle_test_value,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (dutycycle_test_value);
  gtk_box_pack_start (GTK_BOX (vbox6), dutycycle_test_value, TRUE, TRUE, 0);
  gtk_scale_set_digits (GTK_SCALE (dutycycle_test_value), 2);
  gtk_range_set_update_policy (GTK_RANGE (dutycycle_test_value), GTK_UPDATE_DELAYED);

  label3 = gtk_label_new ("duty cycle");
  gtk_widget_ref (label3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label3", label3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label3);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (main_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (main_notebook), 2), label3);

  hbox18 = gtk_hbox_new (FALSE, 10);
  gtk_widget_ref (hbox18);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox18", hbox18,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox18);
  gtk_container_add (GTK_CONTAINER (main_notebook), hbox18);

  vbox8 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox8);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox8", vbox8,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox8);
  gtk_box_pack_start (GTK_BOX (hbox18), vbox8, TRUE, TRUE, 0);

  scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolledwindow4);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "scrolledwindow4", scrolledwindow4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolledwindow4);
  gtk_box_pack_start (GTK_BOX (vbox8), scrolledwindow4, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_NEVER, GTK_POLICY_ALWAYS);

  animation_list = gtk_clist_new (3);
  gtk_widget_ref (animation_list);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_list", animation_list,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_list);
  gtk_container_add (GTK_CONTAINER (scrolledwindow4), animation_list);
  gtk_clist_set_column_width (GTK_CLIST (animation_list), 0, 37);
  gtk_clist_set_column_width (GTK_CLIST (animation_list), 1, 54);
  gtk_clist_set_column_width (GTK_CLIST (animation_list), 2, 37);
  gtk_clist_column_titles_show (GTK_CLIST (animation_list));

  eventbox23 = gtk_event_box_new ();
  gtk_widget_ref (eventbox23);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox23", eventbox23,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox23);
  gtk_clist_set_column_widget (GTK_CLIST (animation_list), 0, eventbox23);
  gtk_tooltips_set_tip (tooltips, eventbox23, "Type of command, either 'set' for LED setting or 'delay' for a delay in the animation.", NULL);

  label61 = gtk_label_new ("Type");
  gtk_widget_ref (label61);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label61", label61,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label61);
  gtk_container_add (GTK_CONTAINER (eventbox23), label61);

  eventbox22 = gtk_event_box_new ();
  gtk_widget_ref (eventbox22);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox22", eventbox22,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox22);
  gtk_clist_set_column_widget (GTK_CLIST (animation_list), 1, eventbox22);
  gtk_tooltips_set_tip (tooltips, eventbox22, "Options of the setting. Either the LED setting command or the delay (in ms).", NULL);

  label62 = gtk_label_new ("Options");
  gtk_widget_ref (label62);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label62", label62,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label62);
  gtk_container_add (GTK_CONTAINER (eventbox22), label62);

  eventbox21 = gtk_event_box_new ();
  gtk_widget_ref (eventbox21);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox21", eventbox21,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox21);
  gtk_clist_set_column_widget (GTK_CLIST (animation_list), 2, eventbox21);
  gtk_tooltips_set_tip (tooltips, eventbox21, "Current settings of LEDs in animation (only in delays, where they are seen). Upper case letters mean the corresponding LED is ON, lower case means OFF, omitting a letter means NORMAL.", NULL);

  label63 = gtk_label_new ("Current");
  gtk_widget_ref (label63);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label63", label63,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label63);
  gtk_container_add (GTK_CONTAINER (eventbox21), label63);

  hbox19 = gtk_hbox_new (FALSE, 5);
  gtk_widget_ref (hbox19);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox19", hbox19,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox19);
  gtk_box_pack_start (GTK_BOX (vbox8), hbox19, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox19), 3);

  animation_remove_button = gtk_button_new_with_label ("Remove");
  gtk_widget_ref (animation_remove_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_remove_button", animation_remove_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_remove_button);
  gtk_box_pack_start (GTK_BOX (hbox19), animation_remove_button, TRUE, TRUE, 0);

  animation_move_up_button = gtk_button_new_with_label ("Move up");
  gtk_widget_ref (animation_move_up_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_move_up_button", animation_move_up_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_move_up_button);
  gtk_box_pack_start (GTK_BOX (hbox19), animation_move_up_button, TRUE, TRUE, 0);

  animation_move_down_button = gtk_button_new_with_label ("Move down");
  gtk_widget_ref (animation_move_down_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_move_down_button", animation_move_down_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_move_down_button);
  gtk_box_pack_start (GTK_BOX (hbox19), animation_move_down_button, TRUE, TRUE, 0);

  vseparator1 = gtk_vseparator_new ();
  gtk_widget_ref (vseparator1);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vseparator1", vseparator1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vseparator1);
  gtk_box_pack_start (GTK_BOX (hbox18), vseparator1, FALSE, FALSE, 0);

  vbox7 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox7);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox7", vbox7,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox7);
  gtk_box_pack_start (GTK_BOX (hbox18), vbox7, TRUE, TRUE, 0);

  vbox9 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox9);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox9", vbox9,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox9);
  gtk_box_pack_start (GTK_BOX (vbox7), vbox9, TRUE, TRUE, 0);

  label26 = gtk_label_new ("Set LED:");
  gtk_widget_ref (label26);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label26", label26,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label26);
  gtk_box_pack_start (GTK_BOX (vbox9), label26, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label26), 7.45058e-09, 0.5);

  table3 = gtk_table_new (3, 2, FALSE);
  gtk_widget_ref (table3);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "table3", table3,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (table3);
  gtk_box_pack_start (GTK_BOX (vbox9), table3, TRUE, TRUE, 0);

  animation_num_opt = gtk_option_menu_new ();
  gtk_widget_ref (animation_num_opt);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_num_opt", animation_num_opt,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_num_opt);
  gtk_table_attach (GTK_TABLE (table3), animation_num_opt, 1, 2, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  animation_num_opt_menu = gtk_menu_new ();
  glade_menuitem = gtk_menu_item_new_with_label ("No change");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_num_opt_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("ON");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_num_opt_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("OFF");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_num_opt_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("NORMAL");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_num_opt_menu), glade_menuitem);
  gtk_option_menu_set_menu (GTK_OPTION_MENU (animation_num_opt), animation_num_opt_menu);

  animation_caps_opt = gtk_option_menu_new ();
  gtk_widget_ref (animation_caps_opt);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_caps_opt", animation_caps_opt,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_caps_opt);
  gtk_table_attach (GTK_TABLE (table3), animation_caps_opt, 1, 2, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  animation_caps_opt_menu = gtk_menu_new ();
  glade_menuitem = gtk_menu_item_new_with_label ("No change");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_caps_opt_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("ON");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_caps_opt_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("OFF");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_caps_opt_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("NORMAL");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_caps_opt_menu), glade_menuitem);
  gtk_option_menu_set_menu (GTK_OPTION_MENU (animation_caps_opt), animation_caps_opt_menu);

  animation_scroll_opt = gtk_option_menu_new ();
  gtk_widget_ref (animation_scroll_opt);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_scroll_opt", animation_scroll_opt,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_scroll_opt);
  gtk_table_attach (GTK_TABLE (table3), animation_scroll_opt, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND),
                    (GtkAttachOptions) (0), 0, 0);
  animation_scroll_opt_menu = gtk_menu_new ();
  glade_menuitem = gtk_menu_item_new_with_label ("No change");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_scroll_opt_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("ON");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_scroll_opt_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("OFF");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_scroll_opt_menu), glade_menuitem);
  glade_menuitem = gtk_menu_item_new_with_label ("NORMAL");
  gtk_widget_show (glade_menuitem);
  gtk_menu_append (GTK_MENU (animation_scroll_opt_menu), glade_menuitem);
  gtk_option_menu_set_menu (GTK_OPTION_MENU (animation_scroll_opt), animation_scroll_opt_menu);

  label55 = gtk_label_new ("Caps Lock:");
  gtk_widget_ref (label55);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label55", label55,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label55);
  gtk_table_attach (GTK_TABLE (table3), label55, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label55), 7.45058e-09, 0.5);
  gtk_misc_set_padding (GTK_MISC (label55), 2, 0);

  label54 = gtk_label_new ("Num Lock:");
  gtk_widget_ref (label54);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label54", label54,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label54);
  gtk_table_attach (GTK_TABLE (table3), label54, 0, 1, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label54), 7.45058e-09, 0.5);
  gtk_misc_set_padding (GTK_MISC (label54), 2, 0);

  label56 = gtk_label_new ("Scroll Lock:");
  gtk_widget_ref (label56);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label56", label56,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label56);
  gtk_table_attach (GTK_TABLE (table3), label56, 0, 1, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label56), 7.45058e-09, 0.5);
  gtk_misc_set_padding (GTK_MISC (label56), 2, 0);

  hbox29 = gtk_hbox_new (TRUE, 5);
  gtk_widget_ref (hbox29);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox29", hbox29,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox29);
  gtk_box_pack_start (GTK_BOX (vbox9), hbox29, TRUE, FALSE, 1);

  animation_set_add_button = gtk_button_new_with_label ("Add");
  gtk_widget_ref (animation_set_add_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_set_add_button", animation_set_add_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_set_add_button);
  gtk_box_pack_start (GTK_BOX (hbox29), animation_set_add_button, TRUE, TRUE, 1);
  gtk_tooltips_set_tip (tooltips, animation_set_add_button, "Add setting after currently selected action or at the end of the list", NULL);

  animation_set_change_button = gtk_button_new_with_label ("Change");
  gtk_widget_ref (animation_set_change_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_set_change_button", animation_set_change_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_set_change_button);
  gtk_box_pack_start (GTK_BOX (hbox29), animation_set_change_button, TRUE, TRUE, 1);
  gtk_tooltips_set_tip (tooltips, animation_set_change_button, "Update the currently selected setting", NULL);

  hseparator6 = gtk_hseparator_new ();
  gtk_widget_ref (hseparator6);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hseparator6", hseparator6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hseparator6);
  gtk_box_pack_start (GTK_BOX (vbox7), hseparator6, FALSE, FALSE, 4);

  vbox10 = gtk_vbox_new (FALSE, 0);
  gtk_widget_ref (vbox10);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "vbox10", vbox10,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vbox10);
  gtk_box_pack_start (GTK_BOX (vbox7), vbox10, TRUE, TRUE, 0);

  label33 = gtk_label_new ("Delay:");
  gtk_widget_ref (label33);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label33", label33,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label33);
  gtk_box_pack_start (GTK_BOX (vbox10), label33, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label33), 7.45058e-09, 0.5);

  hbox23 = gtk_hbox_new (FALSE, 0);
  gtk_widget_ref (hbox23);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox23", hbox23,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox23);
  gtk_box_pack_start (GTK_BOX (vbox10), hbox23, FALSE, FALSE, 0);

  animation_delay_value_adj = gtk_adjustment_new (100, 0, 10000, 50, 100, 1);
  animation_delay_value = gtk_spin_button_new (GTK_ADJUSTMENT (animation_delay_value_adj), 1, 0);
  gtk_widget_ref (animation_delay_value);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_delay_value", animation_delay_value,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_delay_value);
  gtk_box_pack_start (GTK_BOX (hbox23), animation_delay_value, TRUE, TRUE, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (animation_delay_value), TRUE);

  label34 = gtk_label_new ("ms");
  gtk_widget_ref (label34);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label34", label34,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label34);
  gtk_box_pack_start (GTK_BOX (hbox23), label34, FALSE, FALSE, 0);

  animation_delay_add = gtk_button_new_with_label ("Add");
  gtk_widget_ref (animation_delay_add);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_delay_add", animation_delay_add,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_delay_add);
  gtk_box_pack_start (GTK_BOX (hbox23), animation_delay_add, TRUE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, animation_delay_add, "Add pause after currently selected action or at the end of the list", NULL);

  animation_delay_change = gtk_button_new_with_label ("Change");
  gtk_widget_ref (animation_delay_change);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "animation_delay_change", animation_delay_change,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (animation_delay_change);
  gtk_box_pack_start (GTK_BOX (hbox23), animation_delay_change, FALSE, FALSE, 1);
  gtk_tooltips_set_tip (tooltips, animation_delay_change, "Update the currently selected delay", NULL);

  label5 = gtk_label_new ("animation");
  gtk_widget_ref (label5);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label5", label5,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label5);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (main_notebook), gtk_notebook_get_nth_page (GTK_NOTEBOOK (main_notebook), 3), label5);

  hbox2 = gtk_hbox_new (FALSE, 5);
  gtk_widget_ref (hbox2);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox2", hbox2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox2);
  gtk_box_pack_start (GTK_BOX (vbox1), hbox2, FALSE, FALSE, 8);

  eventbox2 = gtk_event_box_new ();
  gtk_widget_ref (eventbox2);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox2", eventbox2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox2);
  gtk_box_pack_start (GTK_BOX (hbox2), eventbox2, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox2, "Current command to be tested. Can be written to.", NULL);

  label4 = gtk_label_new ("Current command:");
  gtk_widget_ref (label4);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "label4", label4,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (label4);
  gtk_container_add (GTK_CONTAINER (eventbox2), label4);

  command_combo = gtk_combo_new ();
  gtk_widget_ref (command_combo);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "command_combo", command_combo,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (command_combo);
  gtk_box_pack_start (GTK_BOX (hbox2), command_combo, TRUE, TRUE, 0);

  command_entry = GTK_COMBO (command_combo)->entry;
  gtk_widget_ref (command_entry);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "command_entry", command_entry,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (command_entry);

  hbox6 = gtk_hbox_new (TRUE, 0);
  gtk_widget_ref (hbox6);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox6", hbox6,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox6);
  gtk_box_pack_start (GTK_BOX (vbox1), hbox6, FALSE, FALSE, 0);

  hbox34 = gtk_hbox_new (FALSE, 2);
  gtk_widget_ref (hbox34);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "hbox34", hbox34,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hbox34);
  gtk_box_pack_start (GTK_BOX (hbox6), hbox34, TRUE, TRUE, 0);

  test_button = gtk_button_new_with_label ("Test");
  gtk_widget_ref (test_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "test_button", test_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (test_button);
  gtk_box_pack_start (GTK_BOX (hbox34), test_button, TRUE, TRUE, 0);
  gtk_tooltips_set_tip (tooltips, test_button, "Test the current command, if valid", NULL);

  auto_test_button = gtk_toggle_button_new_with_label ("Auto");
  gtk_widget_ref (auto_test_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "auto_test_button", auto_test_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (auto_test_button);
  gtk_box_pack_start (GTK_BOX (hbox34), auto_test_button, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, auto_test_button, "Test current command every time it is changed, if valid", NULL);

  eventbox1 = gtk_event_box_new ();
  gtk_widget_ref (eventbox1);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "eventbox1", eventbox1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (eventbox1);
  gtk_box_pack_start (GTK_BOX (hbox6), eventbox1, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, eventbox1, "\"Bad command\" visible if command in \"Current command\" is invalid.", NULL);

  badcommand_label = gtk_label_new ("Bad command");
  gtk_widget_ref (badcommand_label);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "badcommand_label", badcommand_label,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (badcommand_label);
  gtk_container_add (GTK_CONTAINER (eventbox1), badcommand_label);
  gtk_misc_set_padding (GTK_MISC (badcommand_label), 20, 0);

  quit_button = gtk_button_new_with_label ("Quit");
  gtk_widget_ref (quit_button);
  gtk_object_set_data_full (GTK_OBJECT (gled_window), "quit_button", quit_button,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (quit_button);
  gtk_box_pack_start (GTK_BOX (hbox6), quit_button, TRUE, TRUE, 0);

  gtk_signal_connect (GTK_OBJECT (gled_window), "destroy_event",
                      GTK_SIGNAL_FUNC (on_gled_window_destroy_event),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (gled_window), "delete_event",
                      GTK_SIGNAL_FUNC (on_gled_window_delete_event),
                      NULL);
  gtk_signal_connect_after (GTK_OBJECT (main_notebook), "switch_page",
                            GTK_SIGNAL_FUNC (on_main_notebook_switch_page),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (led_use_num1), "toggled",
                      GTK_SIGNAL_FUNC (on_led_use_num_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (led_use_caps1), "toggled",
                      GTK_SIGNAL_FUNC (on_led_use_caps_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (led_use_scroll1), "toggled",
                      GTK_SIGNAL_FUNC (on_led_use_scroll_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (blink_list), "select_row",
                      GTK_SIGNAL_FUNC (on_blink_list_select_row),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (blink_add_button), "clicked",
                      GTK_SIGNAL_FUNC (on_blink_add_button_clicked),
                      NULL);
  gtk_signal_connect_after (GTK_OBJECT (blink_add_button), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (blink_change_button), "clicked",
                      GTK_SIGNAL_FUNC (on_blink_change_button_clicked),
                      NULL);
  gtk_signal_connect_after (GTK_OBJECT (blink_change_button), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (blink_remove_button), "clicked",
                      GTK_SIGNAL_FUNC (list_remove),
                      "blink_list");
  gtk_signal_connect_after (GTK_OBJECT (blink_remove_button), "clicked",
                            GTK_SIGNAL_FUNC (blink_list_correct_on_off),
                            NULL);
  gtk_signal_connect_after (GTK_OBJECT (blink_remove_button), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (blink_move_up_button), "clicked",
                      GTK_SIGNAL_FUNC (list_move_up),
                      "blink_list");
  gtk_signal_connect_after (GTK_OBJECT (blink_move_up_button), "clicked",
                            GTK_SIGNAL_FUNC (blink_list_correct_on_off),
                            NULL);
  gtk_signal_connect_after (GTK_OBJECT (blink_move_up_button), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (blink_move_down), "clicked",
                      GTK_SIGNAL_FUNC (list_move_down),
                      "blink_list");
  gtk_signal_connect_after (GTK_OBJECT (blink_move_down), "clicked",
                            GTK_SIGNAL_FUNC (blink_list_correct_on_off),
                            NULL);
  gtk_signal_connect_after (GTK_OBJECT (blink_move_down), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (led_use_num2), "toggled",
                      GTK_SIGNAL_FUNC (on_led_use_num_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (led_use_caps2), "toggled",
                      GTK_SIGNAL_FUNC (on_led_use_caps_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (led_use_scroll2), "toggled",
                      GTK_SIGNAL_FUNC (on_led_use_scroll_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (frequency_maximum_freq), "changed",
                      GTK_SIGNAL_FUNC (command_signal),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (frequency_minimum_freq), "changed",
                      GTK_SIGNAL_FUNC (command_signal),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (frequency_maximum_value), "changed",
                      GTK_SIGNAL_FUNC (command_signal),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (frequency_maximum_value), "changed",
                      GTK_SIGNAL_FUNC (frequency_test_reset),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (frequency_minimum_value), "changed",
                      GTK_SIGNAL_FUNC (command_signal),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (frequency_minimum_value), "changed",
                      GTK_SIGNAL_FUNC (frequency_test_reset),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (led_use_num3), "toggled",
                      GTK_SIGNAL_FUNC (on_led_use_num_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (led_use_caps3), "toggled",
                      GTK_SIGNAL_FUNC (on_led_use_caps_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (led_use_scroll3), "toggled",
                      GTK_SIGNAL_FUNC (on_led_use_scroll_toggled),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (dutycycle_total_time), "changed",
                      GTK_SIGNAL_FUNC (command_signal),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (dutycycle_maximum_value), "changed",
                      GTK_SIGNAL_FUNC (command_signal),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (dutycycle_maximum_value), "changed",
                      GTK_SIGNAL_FUNC (dutycycle_test_reset),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (dutycycle_minimum_value), "changed",
                      GTK_SIGNAL_FUNC (command_signal),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (dutycycle_minimum_value), "changed",
                      GTK_SIGNAL_FUNC (dutycycle_test_reset),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (animation_list), "select_row",
                      GTK_SIGNAL_FUNC (on_animation_list_select_row),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (animation_remove_button), "clicked",
                      GTK_SIGNAL_FUNC (list_remove),
                      "animation_list");
  gtk_signal_connect_after (GTK_OBJECT (animation_remove_button), "clicked",
                            GTK_SIGNAL_FUNC (anim_correct_on_off_flags),
                            NULL);
  gtk_signal_connect_after (GTK_OBJECT (animation_remove_button), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (animation_move_up_button), "clicked",
                      GTK_SIGNAL_FUNC (list_move_up),
                      "animation_list");
  gtk_signal_connect_after (GTK_OBJECT (animation_move_up_button), "clicked",
                            GTK_SIGNAL_FUNC (anim_correct_on_off_flags),
                            NULL);
  gtk_signal_connect_after (GTK_OBJECT (animation_move_up_button), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (animation_move_down_button), "clicked",
                      GTK_SIGNAL_FUNC (list_move_down),
                      "animation_list");
  gtk_signal_connect_after (GTK_OBJECT (animation_move_down_button), "clicked",
                            GTK_SIGNAL_FUNC (anim_correct_on_off_flags),
                            NULL);
  gtk_signal_connect_after (GTK_OBJECT (animation_move_down_button), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (animation_set_add_button), "clicked",
                      GTK_SIGNAL_FUNC (on_animation_set_add_button_clicked),
                      NULL);
  gtk_signal_connect_after (GTK_OBJECT (animation_set_add_button), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (animation_set_change_button), "clicked",
                      GTK_SIGNAL_FUNC (on_animation_set_change_button_clicked),
                      NULL);
  gtk_signal_connect_after (GTK_OBJECT (animation_set_change_button), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (animation_delay_add), "clicked",
                      GTK_SIGNAL_FUNC (on_animation_delay_add_clicked),
                      NULL);
  gtk_signal_connect_after (GTK_OBJECT (animation_delay_add), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (animation_delay_change), "clicked",
                      GTK_SIGNAL_FUNC (on_animation_delay_change_clicked),
                      NULL);
  gtk_signal_connect_after (GTK_OBJECT (animation_delay_change), "clicked",
                            GTK_SIGNAL_FUNC (command_signal),
                            NULL);
  gtk_signal_connect (GTK_OBJECT (command_entry), "changed",
                      GTK_SIGNAL_FUNC (on_command_entry_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (test_button), "clicked",
                      GTK_SIGNAL_FUNC (on_test_button_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (quit_button), "clicked",
                      GTK_SIGNAL_FUNC (on_quit_button_clicked),
                      NULL);

  gtk_object_set_data (GTK_OBJECT (gled_window), "tooltips", tooltips);

  return gled_window;
}


Generated by  Doxygen 1.6.0   Back to index