/* * e-summary-factory.c: Executive Summary Factory. * * Copyright (C) 2001 Ximian, Inc. * * Authors: Iain Holmes */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include "e-util/e-gui-utils.h" #include "e-summary.h" #include "e-summary-factory.h" BonoboUIVerb verbs[] = { BONOBO_UI_VERB ("PrintMyEvolution", e_summary_print), BONOBO_UI_VERB_END }; #if 0 static EPixmap pixmaps [] = { E_PIXMAP ("/menu/File/Print/Print", "print.xpm"), E_PIXMAP_END }; #endif static void control_activate (BonoboControl *control, BonoboUIComponent *ui_component, ESummary *summary) { Bonobo_UIContainer container; container = bonobo_control_get_remote_ui_container (control); bonobo_ui_component_set_container (ui_component, container); bonobo_object_release_unref (container, NULL); bonobo_ui_component_add_verb_list_with_data (ui_component, verbs, summary); bonobo_ui_component_freeze (ui_component, NULL); bonobo_ui_util_set_ui (ui_component, EVOLUTION_DATADIR, "my-evolution.xml", "my-evolution"); /* e_pixmaps_update (ui_component, pixmaps); */ bonobo_ui_component_thaw (ui_component, NULL); } static void control_deactivate (BonoboControl *control, BonoboUIComponent *ui_component, ESummary *summary) { bonobo_ui_component_unset_container (ui_component); } static void control_activate_cb (BonoboControl *control, gboolean activate, ESummary *summary) { BonoboUIComponent *ui_component; ui_component = bonobo_control_get_ui_component (control); if (summary->shell_view_interface == NULL) { Bonobo_ControlFrame control_frame; CORBA_Environment ev; control_frame = bonobo_control_get_control_frame (control); if (control_frame == NULL) { goto out; } CORBA_exception_init (&ev); summary->shell_view_interface = Bonobo_Unknown_queryInterface (control_frame, "IDL:GNOME/Evolution/ShellView:1.0", &ev); if (BONOBO_EX (&ev)) { g_warning ("Error getting ShellView. %s", CORBA_exception_id (&ev)); summary->shell_view_interface = CORBA_OBJECT_NIL; } CORBA_exception_free (&ev); } out: if (activate) control_activate (control, ui_component, summary); else control_deactivate (control, ui_component, summary); } static void control_destroy_cb (BonoboControl *control, ESummary *summary) { gtk_object_destroy (GTK_OBJECT (summary)); } BonoboControl * e_summary_factory_new_control (const char *uri, const GNOME_Evolution_Shell shell) { BonoboControl *control; GtkWidget *summary; summary = e_summary_new (shell); if (summary == NULL) { return NULL; } gtk_widget_show (summary); control = bonobo_control_new (summary); if (control == NULL) { gtk_object_destroy (GTK_OBJECT (summary)); return NULL; } gtk_signal_connect (GTK_OBJECT (control), "activate", control_activate_cb, summary); gtk_signal_connect (GTK_OBJECT (control), "destroy", control_destroy_cb, summary); return control; } /npm_and_yarn/devel/electron6/files/elliptic-6.5.3 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update KDE Frameworks to latest upstream release, 5.61adridg2019-08-151-1/+0
| | | | | | | | | | | | | | | | | | Release notes at https://kde.org/announcements/kde-frameworks-5.61.0.php Thanks to antoine@ for the exp-runs, tcberner@ for most of the prep-work, the Gentoo community for cherry-picking patches There are a bunch of changes in (implicitly included) headers, which broke existing KDE Applications builds; that's why there are a whole bunch of "patch-gentoo-kf5-5.61-headers" patches (taken from Gentoo packaging). Those will go away with the next KDE Applications release, PR: 239777 Submitted by: tcberner
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2019-07-271-0/+1
| | | | | | | | | | | | | | | as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
* Update KDE Frameworks to 5.55.0tcberner2019-02-131-1/+0
| | | | | | | | Release Announcement: https://www.kde.org/announcements/kde-frameworks-5.55.0.php PR: 235620 Exp-run by: antoine
* Fix Qt5 symbol version scripts to put the catch-all clause first. Whentijl2019-01-16