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

main.c

/*
 * Initial main.c file generated by Glade. Edit as required.
 * Glade will not overwrite this file.
 */

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

#include <gtk/gtk.h>

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

int main (int argc, char *argv[]) {
      GtkWidget *gled_window;
      GtkWidget *scale;
      GtkAdjustment *adj;
      GtkWidget *list;
      
      gtk_set_locale();
      gtk_init(&argc, &argv);
      

      gled_window=create_gled_window();
      gtk_widget_show(gled_window);
      

      /* Attach the signals that glade doesn't know how to attach. */
      /* (GtkAdjustments for frequency and dutycycle) */
      scale=lookup_widget(gled_window,"frequency_test_value");
      adj=gtk_range_get_adjustment(GTK_RANGE(scale));
      gtk_signal_connect(GTK_OBJECT(adj),"value_changed",
                     GTK_SIGNAL_FUNC(command_signal_data),
                     (gpointer)gled_window);

      scale=lookup_widget(gled_window,"dutycycle_test_value");
      adj=gtk_range_get_adjustment(GTK_RANGE(scale));
      gtk_signal_connect(GTK_OBJECT(adj),"value_changed",
                     GTK_SIGNAL_FUNC(command_signal_data),
                     (gpointer)gled_window);

      list=lookup_widget(gled_window,"blink_list");
      gtk_clist_column_titles_passive(GTK_CLIST(list));
      list=lookup_widget(gled_window,"animation_list");
      gtk_clist_column_titles_passive(GTK_CLIST(list));

      gtk_main ();
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index