Logo Search packages:      
Sourcecode: ume-announcer 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 <stdio.h>

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

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

#define GLADE_HOOKUP_OBJECT(component,widget,name) \
  g_object_set_data_full (G_OBJECT (component), name, \
    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)

#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
  g_object_set_data (G_OBJECT (component), name, widget)

GtkWidget*
create_AlarmDialog (void)
{
  GtkWidget *AlarmDialog;
  GtkWidget *dialog_vbox1;
  GtkWidget *clockimage;
  GtkWidget *dialog_action_area1;
  GtkWidget *stopbutton;
  GtkWidget *button_quit;

  AlarmDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (AlarmDialog), _("Alarm"));
  gtk_window_set_position (GTK_WINDOW (AlarmDialog), GTK_WIN_POS_CENTER_ALWAYS);
  gtk_window_set_resizable (GTK_WINDOW (AlarmDialog), FALSE);
  gtk_window_set_type_hint (GTK_WINDOW (AlarmDialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox1 = GTK_DIALOG (AlarmDialog)->vbox;
  gtk_widget_show (dialog_vbox1);

  clockimage = create_pixmap (AlarmDialog, "alarmclock.png");
  gtk_widget_show (clockimage);
  gtk_box_pack_start (GTK_BOX (dialog_vbox1), clockimage, TRUE, TRUE, 0);
  gtk_widget_set_size_request (clockimage, 254, 222);

  dialog_action_area1 = GTK_DIALOG (AlarmDialog)->action_area;
  gtk_widget_show (dialog_action_area1);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_SPREAD);

  stopbutton = gtk_button_new_from_stock ("gtk-media-stop");
  gtk_widget_show (stopbutton);
  gtk_dialog_add_action_widget (GTK_DIALOG (AlarmDialog), stopbutton, 0);
  GTK_WIDGET_SET_FLAGS (stopbutton, GTK_CAN_DEFAULT);

  button_quit = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (button_quit);
  gtk_dialog_add_action_widget (GTK_DIALOG (AlarmDialog), button_quit, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (button_quit, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) AlarmDialog, "show",
                          G_CALLBACK (on_AlarmDialog_show),
                          NULL);
  g_signal_connect ((gpointer) stopbutton, "clicked",
                    G_CALLBACK (on_stopbutton_clicked),
                    NULL);
  g_signal_connect ((gpointer) button_quit, "clicked",
                    G_CALLBACK (gtk_main_quit),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (AlarmDialog, AlarmDialog, "AlarmDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (AlarmDialog, dialog_vbox1, "dialog_vbox1");
  GLADE_HOOKUP_OBJECT (AlarmDialog, clockimage, "clockimage");
  GLADE_HOOKUP_OBJECT_NO_REF (AlarmDialog, dialog_action_area1, "dialog_action_area1");
  GLADE_HOOKUP_OBJECT (AlarmDialog, stopbutton, "stopbutton");
  GLADE_HOOKUP_OBJECT (AlarmDialog, button_quit, "button_quit");

  return AlarmDialog;
}


Generated by  Doxygen 1.6.0   Back to index