/* * Tests the mail summary display bonobo component * * Author: * Miguel de Icaza (miguel@kernel.org) * * (C) 2000 Helix Code, Inc. */ #include #include #include #ifdef USING_OAF #include static void init_corba (int *argc, char *argv[]) { gnome_init ("sample-control-container", "1.0", *argc, argv); oaf_init (*argc, argv); } #else /* USING_OAF */ #include static void init_corba (int *argc, char *argv []) { CORBA_Environment ev; CORBA_exception_init (&ev); gnome_CORBA_init ("sample-control-container", "1.0", argc, argv, 0, &ev); CORBA_exception_free (&ev); } #endif /* USING_OAF */ static guint create_container (void) { GtkWidget *window, *control; BonoboUIHandler *uih; gdk_rgb_init (); gtk_widget_set_default_colormap (gdk_rgb_get_cmap ()); gtk_widget_set_default_visual (gdk_rgb_get_visual ()); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize (GTK_WIDGET (window), 640, 480); gtk_widget_show (GTK_WIDGET (window)); uih = bonobo_ui_handler_new (); #ifdef USING_OAF control = bonobo_widget_new_control ("OAFIID:control:evolution-mail:833d5a71-a201-4a0e-b7e6-5475c5c4cb45", bonobo_object_corba_objref (BONOBO_OBJECT (uih))); #else control = bonobo_widget_new_control ("control:evolution-mail", bonobo_object_corba_objref (BONOBO_OBJECT (uih))); #endif if (control == NULL){ printf ("Could not launch mail control\n"); exit (1); } gtk_container_add (GTK_CONTAINER (window), control); gtk_widget_show (window); gtk_widget_show (control); return FALSE; } int main (int argc, char *argv []) { init_corba (&argc, argv); if (bonobo_init (CORBA_OBJECT_NIL, CORBA_OBJECT_NIL, CORBA_OBJECT_NIL) == FALSE) g_error ("Could not initialize Bonobo\n"); gtk_idle_add ((GtkFunction) create_container, NULL); /* * Main loop */ bonobo_main (); return 0; } t/npm_and_yarn/devel/electron4/files/ini-1.3.7'>dependabot/npm_and_yarn/devel/electron4/files/ini-1.3.7 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* update to 10.0.5:vg2014-05-022-5/+4
* - update distinfo: the distfile was rerolled and now contain workaroundaz2014-04-192-3/+4
* - Update to 10.0.4vg2014-04-164-5/+7
* - Update to 10.0.3vg2014-02-234-9/+23
* - update to 10.0.2amdmi32014-02-045-6/+127
* Current software version works not as expected, mark it as IGNORE.az2014-01-291-0/+2
* - Update from 10.0.0 to 10.0.1danilo2014-01-023-19/+5
* - Update from 9.2.5 to 10.0.0 [1]danilo2013-12-153-14/+24
* - Update to 9.2.5vg2013-11-102-4/+4
* - Update to 9.2.4vg2013-11-012-4/+4
* - Update to 9.2.3vg2013-10-302-5/+12
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1
* - update to 9.2.1az2013-07-304-435/+25