|
发表于 2004-4-16 16:10:59
|
显示全部楼层
GtkWidget *window1;
window1 = gtk_window_new (GTK_WINDOW_POPUP);
gtk_widget_set_size_request (window1, 300, 200);
gtk_window_set_title (GTK_WINDOW (window1), _("window1"));
g_signal_connect ((gpointer) window1, "expose_event",
G_CALLBACK (on_window1_expose_event),
NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (window1, window1, "window1");
//callback
gboolean
on_window1_expose_event (GtkWidget *widget,
GdkEventExpose *event,
gpointer user_data)
{
printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n");
return FALSE;
} |
|