#include #include #include #include "Evolution.h" #include "evolution-storage.h" #include "evolution-shell-component.h" #include "e-util/e-gui-utils.h" #define COMPONENT_FACTORY_ID "OAFIID:evolution-shell-component-factory:evolution-notes:f2f0f57f-27d9-4498-b54b-248f223ee772" static const EvolutionShellComponentFolderType folder_types[] = { { "notes", "evolution-notes.png" }, { NULL, NULL } }; static void new_note_cb (BonoboUIHandler *uih, void *user_data, const char *path) { g_print ("new note!\n"); } static GnomeUIInfo gnome_toolbar [] = { GNOMEUIINFO_ITEM_STOCK (N_("New"), N_("Create a new note"), new_note_cb, GNOME_STOCK_PIXMAP_NEW), GNOMEUIINFO_END }; static void control_deactivate (BonoboControl *control, BonoboUIHandler *uih) { bonobo_ui_handler_dock_remove (uih, "/Toolbar"); } static void control_activate (BonoboControl *control, BonoboUIHandler *uih) { Bonobo_UIHandler remote_uih; GtkWidget *toolbar, *toolbar_frame; BonoboControl *toolbar_control ; remote_uih = bonobo_control_get_remote_ui_handler (control); bonobo_ui_handler_set_container (uih, remote_uih); bonobo_object_release_unref (remote_uih, NULL); toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH); gnome_app_fill_toolbar_with_data (GTK_TOOLBAR (toolbar), gnome_toolbar, NULL, NULL); toolbar_frame = gtk_frame_new (NULL); gtk_frame_set_shadow_type (GTK_FRAME (toolbar_frame), GTK_SHADOW_OUT); gtk_container_add (GTK_CONTAINER (toolbar_frame), toolbar); gtk_widget_show (toolbar_frame); gtk_widget_show_all (toolbar_frame); toolbar_control = bonobo_control_new (toolbar_frame); bonobo_ui_handler_dock_add ( uih, "/Toolbar", bonobo_object_corba_objref (BONOBO_OBJECT (toolbar_control)), GNOME_DOCK_ITEM_BEH_EXCLUSIVE, GNOME_DOCK_TOP, 1, 1, 0); } static void control_activate_cb (BonoboControl *control, gboolean activate) { BonoboUIHandler *uih; uih = bonobo_control_get_ui_handler (control); g_assert (uih); if (activate) control_activate (control, uih); else control_deactivate (control, uih); } static BonoboControl * create_view (EvolutionShellComponent *shell_component, const char *physical_uri, void *closure) { BonoboControl * control; control = notes_factory_new_control (); gtk_signal_connect (GTK_OBJECT (control), "activate", control_activate_cb, NULL); return control; } static void owner_set_cb (EvolutionShellComponent *shell_component, EvolutionShellClient shell_client, gpointer user_data) { g_print ("evolution-notes: Yeeeh! We have an owner!\n"); /* FIXME */ } static void owner_unset_cb (EvolutionShellComponent *shell_component, gpointer user_data) { g_print ("No owner anymore\n"); } /* The factory function */ static BonoboObject * notes_component_factory (BonoboGenericFactory *factory, void *closure) { EvolutionShellComponent *shell_component; shell_component = evolution_shell_component_new (folder_types, create_view, NULL); gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set", GTK_SIGNAL_FUNC (owner_set_cb), NULL); gtk_signal_connect (GTK_OBJECT (shell_component), "owner_unset", GTK_SIGNAL_FUNC (owner_unset_cb), NULL); return BONOBO_OBJECT (shell_component); } void component_factory_init (void) { static BonoboGenericFactory *factory = NULL; if (factory != NULL) return; factory = bonobo_generic_factory_new (COMPONENT_FACTORY_ID, notes_component_factory, NULL); if (factory == NULL) { e_notice (NULL, GNOME_MESSAGE_BOX_ERROR, _("Cannot initialize Evolution's notes component.")); exit (1); } } /electron6/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Update multimedia/libdvdread to 4.9.9martymac2014-05-131-1/+1
* - Update libdvdread and libdvdnav to 4.2.1martymac2014-02-031-0/+1
* Use new LIB_DEPENDS regimeehaupt2013-12-181-1/+1
* Support staging.ehaupt2013-10-232-2/+1
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1
* Remove MAKE_JOBS_SAFE which is now default.ehaupt2013-07-241-1/+0
* - Convert USE_GMAKE to USES=gmakeehaupt2013-07-091-1/+1
* Mark MAKE_JOBS_SAFEehaupt2013-05-081-0/+1
* Convert to USES=gettextehaupt2013-04-231-1/+1
* - Use DOC instead of NOPORTDOCSehaupt2013-01-151-7/+7
* - Update to 0.4.2ehaupt2012-07-285-53/+34
* Add multimedia as a virtual category.ehaupt2012-02-031-1/+1
* - Update libdvdread and libdvdnav to 4.2.0 and bump dependent ports' revisionsmartymac2012-01-171-1/+1
* Pacify portlintehaupt2011-12-271-2/+2
* - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-1/+0
* Add LICENSE and remove MD5 sums.ehaupt2011-01-262-1/+2
* - Add pkg-plist which should have been added with the previous commitehaupt2010-09-183-14/+16
* Update to 0.4.1ehaupt2010-09-175-78/+72
* Bump PORTREVISION for libdvdread dependantsmakc2010-09-151-1/+1
* Take maintainershipehaupt2010-08-201-1/+1
* - Reset Maintainermiwi2009-02-171-1/+1
* - Pass maintainership to submittertabthorpe2009-02-131-1/+1
* Replace libdvdread with the version maintained by the mplayer grouprnoland2009-02-091-2/+2
* Reset conrads@cox.net due to lack of time to work on FreeBSD.linimon2008-08-201-1/+1
* * libdvdread - PORTREVISION incrementkoitsu2007-04-051-2/+2
* - Prevent a division by zero [1]sat2007-01-232-2/+12
* - Pass maintainership to submittermiwi2006-11-011-1/+1
* Remove USE_REINPLACE from all categories starting with Sedwin2006-05-131-1/+0
* - Reset maintainer to portsahze2005-11-111-1/+1
* - Add SHA256ahze2005-11-091-0/+1
* - Only check for largest title set if there is more than one title set.ahze2005-03-012-2/+11
* - add the missing -n option into the helpahze2004-12-122-0/+60