您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ E_SHELL_VIEW函数代码示例

51自学网 2021-06-01 20:36:53
  C++
这篇教程C++ E_SHELL_VIEW函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中E_SHELL_VIEW函数的典型用法代码示例。如果您正苦于以下问题:C++ E_SHELL_VIEW函数的具体用法?C++ E_SHELL_VIEW怎么用?C++ E_SHELL_VIEW使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了E_SHELL_VIEW函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: e_task_shell_view_set_status_message

voide_task_shell_view_set_status_message (ETaskShellView *task_shell_view,                                      const gchar *status_message,                                      gdouble percent){	EActivity *activity;	EShellView *shell_view;	EShellBackend *shell_backend;	g_return_if_fail (E_IS_TASK_SHELL_VIEW (task_shell_view));	activity = task_shell_view->priv->activity;	shell_view = E_SHELL_VIEW (task_shell_view);	shell_backend = e_shell_view_get_shell_backend (shell_view);	if (status_message == NULL || *status_message == '/0') {		if (activity != NULL) {			e_activity_set_state (activity, E_ACTIVITY_COMPLETED);			g_object_unref (activity);			activity = NULL;		}	} else if (activity == NULL) {		activity = e_activity_new ();		e_activity_set_percent (activity, percent);		e_activity_set_text (activity, status_message);		e_shell_backend_add_activity (shell_backend, activity);	} else {		e_activity_set_percent (activity, percent);		e_activity_set_text (activity, status_message);	}	task_shell_view->priv->activity = activity;}
开发者ID:UIKit0,项目名称:evolution,代码行数:35,


示例2: action_calendar_taskpad_open_url_cb

static voidaction_calendar_taskpad_open_url_cb (GtkAction *action,                                     ECalShellView *cal_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	ECalShellContent *cal_shell_content;	ECalModelComponent *comp_data;	ETaskTable *task_table;	icalproperty *prop;	const gchar *uri;	GSList *list;	shell_view = E_SHELL_VIEW (cal_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	cal_shell_content = cal_shell_view->priv->cal_shell_content;	task_table = e_cal_shell_content_get_task_table (cal_shell_content);	list = e_task_table_get_selected (task_table);	g_return_if_fail (list != NULL);	comp_data = list->data;	/* XXX We only open the URI of the first selected task. */	prop = icalcomponent_get_first_property (		comp_data->icalcomp, ICAL_URL_PROPERTY);	g_return_if_fail (prop != NULL);	uri = icalproperty_get_url (prop);	e_show_uri (GTK_WINDOW (shell_window), uri);}
开发者ID:Oliver-Luo,项目名称:evolution,代码行数:31,


示例3: action_task_list_refresh_cb

static voidaction_task_list_refresh_cb (GtkAction *action,                             ETaskShellView *task_shell_view){	ETaskShellSidebar *task_shell_sidebar;	ESourceSelector *selector;	EClient *client = NULL;	ESource *source;	task_shell_sidebar = task_shell_view->priv->task_shell_sidebar;	selector = e_task_shell_sidebar_get_selector (task_shell_sidebar);	source = e_source_selector_ref_primary_selection (selector);	if (source != NULL) {		client = e_client_selector_ref_cached_client (			E_CLIENT_SELECTOR (selector), source);		g_object_unref (source);	}	if (client == NULL)		return;	g_return_if_fail (e_client_check_refresh_supported (client));	e_cal_shell_view_allow_auth_prompt_and_refresh (E_SHELL_VIEW (task_shell_view), client);	g_object_unref (client);}
开发者ID:lantw44,项目名称:gsoc2013-evolution,代码行数:29,


示例4: action_address_book_delete_cb

static voidaction_address_book_delete_cb (GtkAction *action,                               EBookShellView *book_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	EBookShellBackend *book_shell_backend;	EBookShellSidebar *book_shell_sidebar;	ESource *source;	ESourceSelector *selector;	ESourceGroup *source_group;	ESourceList *source_list;	EBookClient *book;	gint response;	GError *error = NULL;	shell_view = E_SHELL_VIEW (book_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	book_shell_backend = book_shell_view->priv->book_shell_backend;	source_list = e_book_shell_backend_get_source_list (book_shell_backend);	book_shell_sidebar = book_shell_view->priv->book_shell_sidebar;	selector = e_book_shell_sidebar_get_selector (book_shell_sidebar);	source = e_source_selector_get_primary_selection (selector);	g_return_if_fail (source != NULL);	response = e_alert_run_dialog_for_args (		GTK_WINDOW (shell_window),		"addressbook:ask-delete-addressbook",		e_source_peek_name (source), NULL);	if (response != GTK_RESPONSE_YES)		return;	book = e_book_client_new (source, &error);	if (error != NULL) {		g_warning ("Error removing addressbook: %s", error->message);		g_error_free (error);		return;	}	if (!e_client_remove_sync (E_CLIENT (book), NULL, NULL)) {		e_alert_run_dialog_for_args (			GTK_WINDOW (shell_window),			"addressbook:remove-addressbook", NULL);		g_object_unref (book);		return;	}	if (e_source_selector_source_is_selected (selector, source))		e_source_selector_unselect_source (selector, source);	source_group = e_source_peek_group (source);	e_source_group_remove_source (source_group, source);	e_source_list_sync (source_list, NULL);	g_object_unref (book);}
开发者ID:jdapena,项目名称:evolution,代码行数:60,


示例5: action_address_book_new_cb

static voidaction_address_book_new_cb (GtkAction *action,                            EBookShellView *book_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	ESourceRegistry *registry;	GtkWidget *config;	GtkWidget *dialog;	const gchar *icon_name;	shell_view = E_SHELL_VIEW (book_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	registry = book_shell_view->priv->registry;	config = e_book_source_config_new (registry, NULL);	dialog = e_source_config_dialog_new (E_SOURCE_CONFIG (config));	gtk_window_set_transient_for (		GTK_WINDOW (dialog), GTK_WINDOW (shell_window));	icon_name = gtk_action_get_icon_name (action);	gtk_window_set_icon_name (GTK_WINDOW (dialog), icon_name);	gtk_window_set_title (GTK_WINDOW (dialog), _("New Address Book"));	gtk_widget_show (dialog);}
开发者ID:Distrotech,项目名称:evolution,代码行数:29,


示例6: mail_shell_view_popup_event_cb

static gbooleanmail_shell_view_popup_event_cb (EMailShellView *mail_shell_view,                                const gchar *uri){	EMailShellContent *mail_shell_content;	EMailDisplay *display;	EShellView *shell_view;	EMailReader *reader;	EMailView *mail_view;	GtkMenu *menu;	if (uri != NULL)		return FALSE;	mail_shell_content = mail_shell_view->priv->mail_shell_content;	mail_view = e_mail_shell_content_get_mail_view (mail_shell_content);	reader = E_MAIL_READER (mail_view);	display = e_mail_reader_get_mail_display (reader);	if (e_web_view_get_cursor_image_src (E_WEB_VIEW (display)) != NULL)		return FALSE;	menu = e_mail_reader_get_popup_menu (reader);	shell_view = E_SHELL_VIEW (mail_shell_view);	e_shell_view_update_actions (shell_view);	gtk_menu_popup (		menu, NULL, NULL, NULL, NULL,		0, gtk_get_current_event_time ());	return TRUE;}
开发者ID:lantw44,项目名称:gsoc2013-evolution,代码行数:33,


示例7: action_task_list_new_cb

static voidaction_task_list_new_cb (GtkAction *action,                         ETaskShellView *task_shell_view){	EShell *shell;	EShellView *shell_view;	EShellWindow *shell_window;	ESourceRegistry *registry;	ECalClientSourceType source_type;	GtkWidget *config;	GtkWidget *dialog;	const gchar *icon_name;	shell_view = E_SHELL_VIEW (task_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	shell = e_shell_window_get_shell (shell_window);	registry = e_shell_get_registry (shell);	source_type = E_CAL_CLIENT_SOURCE_TYPE_TASKS;	config = e_cal_source_config_new (registry, NULL, source_type);	dialog = e_source_config_dialog_new (E_SOURCE_CONFIG (config));	gtk_window_set_transient_for (		GTK_WINDOW (dialog), GTK_WINDOW (shell_window));	icon_name = gtk_action_get_icon_name (action);	gtk_window_set_icon_name (GTK_WINDOW (dialog), icon_name);	gtk_window_set_title (GTK_WINDOW (dialog), _("New Task List"));	gtk_widget_show (dialog);}
开发者ID:lantw44,项目名称:gsoc2013-evolution,代码行数:33,


示例8: action_task_new_cb

static voidaction_task_new_cb (GtkAction *action,                    ETaskShellView *task_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	ETaskShellContent *task_shell_content;	ETaskTable *task_table;	EClient *client = NULL;	GSList *list;	shell_view = E_SHELL_VIEW (task_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	task_shell_content = task_shell_view->priv->task_shell_content;	task_table = e_task_shell_content_get_task_table (task_shell_content);	list = e_task_table_get_selected (task_table);	if (list) {		ECalModelComponent *comp_data;		comp_data = list->data;		client = g_object_ref (comp_data->client);		g_slist_free (list);	}	e_cal_ops_new_component_editor (shell_window, E_CAL_CLIENT_SOURCE_TYPE_TASKS,		client ? e_source_get_uid (e_client_get_source (client)) : NULL, FALSE);	g_clear_object (&client);}
开发者ID:Oliver-Luo,项目名称:evolution,代码行数:31,


示例9: action_task_list_copy_cb

static voidaction_task_list_copy_cb (GtkAction *action,                          ETaskShellView *task_shell_view){	ETaskShellSidebar *task_shell_sidebar;	EShell *shell;	EShellView *shell_view;	EShellWindow *shell_window;	ESourceRegistry *registry;	ESourceSelector *selector;	ESource *source;	shell_view = E_SHELL_VIEW (task_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	shell = e_shell_window_get_shell (shell_window);	registry = e_shell_get_registry (shell);	task_shell_sidebar = task_shell_view->priv->task_shell_sidebar;	selector = e_task_shell_sidebar_get_selector (task_shell_sidebar);	source = e_source_selector_ref_primary_selection (selector);	g_return_if_fail (source != NULL);	copy_source_dialog (		GTK_WINDOW (shell_window), registry,		source, E_CAL_CLIENT_SOURCE_TYPE_TASKS);	g_object_unref (source);}
开发者ID:lantw44,项目名称:gsoc2013-evolution,代码行数:29,


示例10: e_cal_shell_view_taskpad_actions_init

voide_cal_shell_view_taskpad_actions_init (ECalShellView *cal_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	GtkActionGroup *action_group;	shell_view = E_SHELL_VIEW (cal_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	/* Calendar Actions */	action_group = ACTION_GROUP (CALENDAR);	gtk_action_group_add_actions (		action_group, calendar_taskpad_entries,		G_N_ELEMENTS (calendar_taskpad_entries), cal_shell_view);	/* Lockdown Printing Actions */	action_group = ACTION_GROUP (LOCKDOWN_PRINTING);	gtk_action_group_add_actions (		action_group, lockdown_printing_entries,		G_N_ELEMENTS (lockdown_printing_entries), cal_shell_view);	/* Lockdown Save-to-Disk Actions */	action_group = ACTION_GROUP (LOCKDOWN_SAVE_TO_DISK);	gtk_action_group_add_actions (		action_group, lockdown_save_to_disk_entries,		G_N_ELEMENTS (lockdown_save_to_disk_entries), cal_shell_view);}
开发者ID:Oliver-Luo,项目名称:evolution,代码行数:28,


示例11: action_calendar_taskpad_new_cb

static voidaction_calendar_taskpad_new_cb (GtkAction *action,                                ECalShellView *cal_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	ECalShellContent *cal_shell_content;	ECalModelComponent *comp_data;	ETaskTable *task_table;	GSList *list;	shell_view = E_SHELL_VIEW (cal_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	cal_shell_content = cal_shell_view->priv->cal_shell_content;	task_table = e_cal_shell_content_get_task_table (cal_shell_content);	list = e_task_table_get_selected (task_table);	g_return_if_fail (list != NULL);	comp_data = list->data;	g_slist_free (list);	e_cal_ops_new_component_editor (shell_window, E_CAL_CLIENT_SOURCE_TYPE_TASKS,		e_source_get_uid (e_client_get_source (E_CLIENT (comp_data->client))), FALSE);}
开发者ID:Oliver-Luo,项目名称:evolution,代码行数:25,


示例12: action_contact_new_list_cb

static voidaction_contact_new_list_cb (GtkAction *action,                            EBookShellView *book_shell_view){	EShell *shell;	EShellView *shell_view;	EShellWindow *shell_window;	EBookShellContent *book_shell_content;	EAddressbookView *view;	EAddressbookModel *model;	EContact *contact;	EABEditor *editor;	EBookClient *book;	shell_view = E_SHELL_VIEW (book_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	shell = e_shell_window_get_shell (shell_window);	book_shell_content = book_shell_view->priv->book_shell_content;	view = e_book_shell_content_get_current_view (book_shell_content);	g_return_if_fail (view != NULL);	model = e_addressbook_view_get_model (view);	book = e_addressbook_model_get_client (model);	g_return_if_fail (book != NULL);	contact = e_contact_new ();	editor = e_contact_list_editor_new (shell, book, contact, TRUE, TRUE);	eab_editor_show (editor);	g_object_unref (contact);}
开发者ID:jdapena,项目名称:evolution,代码行数:31,


示例13: e_cal_shell_view_memopad_actions_update

voide_cal_shell_view_memopad_actions_update (ECalShellView *cal_shell_view){	ECalShellContent *cal_shell_content;	EShellWindow *shell_window;	EShellView *shell_view;	EMemoTable *memo_table;	GtkAction *action;	GSList *list, *iter;	gboolean editable = TRUE;	gboolean has_url = FALSE;	gboolean sensitive;	gint n_selected;	shell_view = E_SHELL_VIEW (cal_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	cal_shell_content = cal_shell_view->priv->cal_shell_content;	memo_table = e_cal_shell_content_get_memo_table (cal_shell_content);	n_selected = e_table_selected_count (E_TABLE (memo_table));	list = e_memo_table_get_selected (memo_table);	for (iter = list; iter != NULL; iter = iter->next) {		ECalModelComponent *comp_data = iter->data;		icalproperty *prop;		gboolean read_only;		read_only = e_client_is_readonly (E_CLIENT (comp_data->client));		editable &= !read_only;		prop = icalcomponent_get_first_property (			comp_data->icalcomp, ICAL_URL_PROPERTY);		has_url |= (prop != NULL);	}	g_slist_free (list);	action = ACTION (CALENDAR_MEMOPAD_FORWARD);	sensitive = (n_selected == 1);	gtk_action_set_sensitive (action, sensitive);	action = ACTION (CALENDAR_MEMOPAD_OPEN);	sensitive = (n_selected == 1);	gtk_action_set_sensitive (action, sensitive);	action = ACTION (CALENDAR_MEMOPAD_OPEN_URL);	sensitive = (n_selected == 1) && has_url;	gtk_action_set_sensitive (action, sensitive);	action = ACTION (CALENDAR_MEMOPAD_PRINT);	sensitive = (n_selected == 1);	gtk_action_set_sensitive (action, sensitive);	action = ACTION (CALENDAR_MEMOPAD_SAVE_AS);	sensitive = (n_selected == 1);	gtk_action_set_sensitive (action, sensitive);}
开发者ID:Distrotech,项目名称:evolution,代码行数:57,


示例14: e_task_shell_view_open_task

voide_task_shell_view_open_task (ETaskShellView *task_shell_view,                             ECalModelComponent *comp_data){	EShell *shell;	EShellView *shell_view;	EShellWindow *shell_window;	ESourceRegistry *registry;	CompEditor *editor;	CompEditorFlags flags = 0;	ECalComponent *comp;	icalcomponent *clone;	icalproperty *prop;	const gchar *uid;	g_return_if_fail (E_IS_TASK_SHELL_VIEW (task_shell_view));	g_return_if_fail (E_IS_CAL_MODEL_COMPONENT (comp_data));	shell_view = E_SHELL_VIEW (task_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	shell = e_shell_window_get_shell (shell_window);	registry = e_shell_get_registry (shell);	uid = icalcomponent_get_uid (comp_data->icalcomp);	editor = comp_editor_find_instance (uid);	if (editor != NULL)		goto exit;	comp = e_cal_component_new ();	clone = icalcomponent_new_clone (comp_data->icalcomp);	e_cal_component_set_icalcomponent (comp, clone);	prop = icalcomponent_get_first_property (		comp_data->icalcomp, ICAL_ATTENDEE_PROPERTY);	if (prop != NULL)		flags |= COMP_EDITOR_IS_ASSIGNED;	if (itip_organizer_is_user (registry, comp, comp_data->client))		flags |= COMP_EDITOR_USER_ORG;	if (!e_cal_component_has_attendees (comp))		flags |= COMP_EDITOR_USER_ORG;	editor = task_editor_new (comp_data->client, shell, flags);	comp_editor_edit_comp (editor, comp);	g_object_unref (comp);	if (flags & COMP_EDITOR_IS_ASSIGNED)		task_editor_show_assignment (TASK_EDITOR (editor));exit:	gtk_window_present (GTK_WINDOW (editor));}
开发者ID:UIKit0,项目名称:evolution,代码行数:56,


示例15: action_address_book_new_cb

static voidaction_address_book_new_cb (GtkAction *action,                            EBookShellView *book_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	shell_view = E_SHELL_VIEW (book_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	addressbook_config_create_new_source (GTK_WIDGET (shell_window));}
开发者ID:jdapena,项目名称:evolution,代码行数:12,


示例16: e_mapi_config_ui_extension_constructed

static voide_mapi_config_ui_extension_constructed (GObject *object){	EExtension *extension;	EExtensible *extensible;	extension = E_EXTENSION (object);	extensible = e_extension_get_extensible (extension);	/* Chain up to parent's constructed() method. */	G_OBJECT_CLASS (e_mapi_config_ui_extension_parent_class)->constructed (object);	g_signal_connect (E_SHELL_VIEW (extensible), "toggled", G_CALLBACK (e_mapi_config_ui_extension_shell_view_toggled_cb), extension);}
开发者ID:GNOME,项目名称:evolution-mapi,代码行数:14,


示例17: action_address_book_manage_groups_cb

static voidaction_address_book_manage_groups_cb (GtkAction *action,				      EBookShellView *book_shell_view){	EShellView *shell_view;	ESourceSelector *selector;	shell_view = E_SHELL_VIEW (book_shell_view);	selector = e_book_shell_sidebar_get_selector (book_shell_view->priv->book_shell_sidebar);	if (e_source_selector_manage_groups (selector) &&	    e_source_selector_save_groups_setup (selector, e_shell_view_get_state_key_file (shell_view)))		e_shell_view_set_state_dirty (shell_view);}
开发者ID:Distrotech,项目名称:evolution,代码行数:14,


示例18: action_task_purge_cb

static voidaction_task_purge_cb (GtkAction *action,                      ETaskShellView *task_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	GtkWidget *content_area;	GtkWidget *dialog;	GtkWidget *widget;	gboolean active;	gint response;	shell_view = E_SHELL_VIEW (task_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	if (!e_task_shell_view_get_confirm_purge (task_shell_view))		goto purge;	/* XXX This needs reworked.  The dialog looks like ass. */	dialog = gtk_message_dialog_new (		GTK_WINDOW (shell_window),		GTK_DIALOG_DESTROY_WITH_PARENT,		GTK_MESSAGE_WARNING,		GTK_BUTTONS_YES_NO,		"%s", _("This operation will permanently erase all tasks "		"marked as completed. If you continue, you will not be able "		"to recover these tasks./n/nReally erase these tasks?"));	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_NO);	content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));	widget = gtk_check_button_new_with_label (_("Do not ask me again"));	gtk_box_pack_start (GTK_BOX (content_area), widget, TRUE, TRUE, 6);	gtk_widget_show (widget);	response = gtk_dialog_run (GTK_DIALOG (dialog));	active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget));	gtk_widget_destroy (dialog);	if (response != GTK_RESPONSE_YES)		return;	if (active)		e_task_shell_view_set_confirm_purge (task_shell_view, FALSE);purge:	e_task_shell_view_delete_completed (task_shell_view);}
开发者ID:lantw44,项目名称:gsoc2013-evolution,代码行数:49,


示例19: e_cal_shell_view_taskpad_open_task

voide_cal_shell_view_taskpad_open_task (ECalShellView *cal_shell_view,                                    ECalModelComponent *comp_data){	EShellContent *shell_content;	ECalModel *model;	g_return_if_fail (E_IS_CAL_SHELL_VIEW (cal_shell_view));	g_return_if_fail (E_IS_CAL_MODEL_COMPONENT (comp_data));	shell_content = e_shell_view_get_shell_content (E_SHELL_VIEW (cal_shell_view));	model = e_cal_base_shell_content_get_model (E_CAL_BASE_SHELL_CONTENT (shell_content));	e_cal_ops_open_component_in_editor_sync	(model, comp_data->client, comp_data->icalcomp);}
开发者ID:Oliver-Luo,项目名称:evolution,代码行数:15,


示例20: action_task_new_cb

static voidaction_task_new_cb (GtkAction *action,                    ETaskShellView *task_shell_view){	EShell *shell;	EShellView *shell_view;	EShellWindow *shell_window;	ETaskShellContent *task_shell_content;	ETaskTable *task_table;	ECalClient *client;	ECalComponent *comp;	CompEditor *editor;	GSList *list;	shell_view = E_SHELL_VIEW (task_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	shell = e_shell_window_get_shell (shell_window);	task_shell_content = task_shell_view->priv->task_shell_content;	task_table = e_task_shell_content_get_task_table (task_shell_content);	list = e_task_table_get_selected (task_table);	if (list == NULL) {		ECalModel *model;		model = e_task_table_get_model (task_table);		client = e_cal_model_ref_default_client (model);	} else {		ECalModelComponent *comp_data;		comp_data = list->data;		client = g_object_ref (comp_data->client);		g_slist_free (list);	}	g_return_if_fail (client != NULL);	editor = task_editor_new (client, shell, COMP_EDITOR_NEW_ITEM);	comp = cal_comp_task_new_with_defaults (client);	comp_editor_edit_comp (editor, comp);	gtk_window_present (GTK_WINDOW (editor));	g_object_unref (comp);	g_object_unref (client);}
开发者ID:lantw44,项目名称:gsoc2013-evolution,代码行数:47,


示例21: action_address_book_properties_cb

static voidaction_address_book_properties_cb (GtkAction *action,                                   EBookShellView *book_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	EBookShellSidebar *book_shell_sidebar;	ESource *source;	ESourceSelector *selector;	EditorUidClosure *closure;	GHashTable *uid_to_editor;	const gchar *uid;	shell_view = E_SHELL_VIEW (book_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	book_shell_sidebar = book_shell_view->priv->book_shell_sidebar;	selector = e_book_shell_sidebar_get_selector (book_shell_sidebar);	source = e_source_selector_get_primary_selection (selector);	g_return_if_fail (source != NULL);	uid = e_source_peek_uid (source);	uid_to_editor = book_shell_view->priv->uid_to_editor;	closure = g_hash_table_lookup (uid_to_editor, uid);	if (closure == NULL) {		GtkWidget *editor;		editor = addressbook_config_edit_source (			GTK_WIDGET (shell_window), source);		closure = g_new (EditorUidClosure, 1);		closure->editor = editor;		closure->uid = g_strdup (uid);		closure->view = book_shell_view;		g_hash_table_insert (uid_to_editor, closure->uid, closure);		g_object_weak_ref (			G_OBJECT (closure->editor), (GWeakNotify)			e_book_shell_view_editor_weak_notify, closure);	}	gtk_window_present (GTK_WINDOW (closure->editor));}
开发者ID:jdapena,项目名称:evolution,代码行数:45,


示例22: action_address_book_delete_cb

static voidaction_address_book_delete_cb (GtkAction *action,                               EBookShellView *book_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	EBookShellSidebar *book_shell_sidebar;	ESource *source;	ESourceSelector *selector;	gint response;	shell_view = E_SHELL_VIEW (book_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	book_shell_sidebar = book_shell_view->priv->book_shell_sidebar;	selector = e_book_shell_sidebar_get_selector (book_shell_sidebar);	source = e_source_selector_ref_primary_selection (selector);	g_return_if_fail (source != NULL);	if (e_source_get_remote_deletable (source)) {		response = e_alert_run_dialog_for_args (			GTK_WINDOW (shell_window),			"addressbook:ask-delete-remote-addressbook",			e_source_get_display_name (source), NULL);		if (response == GTK_RESPONSE_YES)			e_shell_view_remote_delete_source (shell_view, source);	} else {		response = e_alert_run_dialog_for_args (			GTK_WINDOW (shell_window),			"addressbook:ask-delete-addressbook",			e_source_get_display_name (source), NULL);		if (response == GTK_RESPONSE_YES)			e_shell_view_remove_source (shell_view, source);	}	g_object_unref (source);}
开发者ID:Distrotech,项目名称:evolution,代码行数:41,


示例23: action_task_list_delete_cb

static voidaction_task_list_delete_cb (GtkAction *action,                            ETaskShellView *task_shell_view){	ETaskShellSidebar *task_shell_sidebar;	EShellWindow *shell_window;	EShellView *shell_view;	ESource *source;	ESourceSelector *selector;	gint response;	shell_view = E_SHELL_VIEW (task_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	task_shell_sidebar = task_shell_view->priv->task_shell_sidebar;	selector = e_task_shell_sidebar_get_selector (task_shell_sidebar);	source = e_source_selector_ref_primary_selection (selector);	g_return_if_fail (source != NULL);	if (e_source_get_remote_deletable (source)) {		response = e_alert_run_dialog_for_args (			GTK_WINDOW (shell_window),			"calendar:prompt-delete-remote-task-list",			e_source_get_display_name (source), NULL);		if (response == GTK_RESPONSE_YES)			e_shell_view_remote_delete_source (shell_view, source);	} else {		response = e_alert_run_dialog_for_args (			GTK_WINDOW (shell_window),			"calendar:prompt-delete-task-list",			e_source_get_display_name (source), NULL);		if (response == GTK_RESPONSE_YES)			e_shell_view_remove_source (shell_view, source);	}	g_object_unref (source);}
开发者ID:lantw44,项目名称:gsoc2013-evolution,代码行数:41,


示例24: action_task_list_properties_cb

static voidaction_task_list_properties_cb (GtkAction *action,                                ETaskShellView *task_shell_view){	EShellView *shell_view;	EShellWindow *shell_window;	ETaskShellSidebar *task_shell_sidebar;	ECalClientSourceType source_type;	ESource *source;	ESourceSelector *selector;	ESourceRegistry *registry;	GtkWidget *config;	GtkWidget *dialog;	const gchar *icon_name;	shell_view = E_SHELL_VIEW (task_shell_view);	shell_window = e_shell_view_get_shell_window (shell_view);	task_shell_sidebar = task_shell_view->priv->task_shell_sidebar;	selector = e_task_shell_sidebar_get_selector (task_shell_sidebar);	source = e_source_selector_ref_primary_selection (selector);	g_return_if_fail (source != NULL);	source_type = E_CAL_CLIENT_SOURCE_TYPE_TASKS;	registry = e_source_selector_get_registry (selector);	config = e_cal_source_config_new (registry, source, source_type);	g_object_unref (source);	dialog = e_source_config_dialog_new (E_SOURCE_CONFIG (config));	gtk_window_set_transient_for (		GTK_WINDOW (dialog), GTK_WINDOW (shell_window));	icon_name = gtk_action_get_icon_name (action);	gtk_window_set_icon_name (GTK_WINDOW (dialog), icon_name);	gtk_window_set_title (GTK_WINDOW (dialog), _("Task List Properties"));	gtk_widget_show (dialog);}
开发者ID:lantw44,项目名称:gsoc2013-evolution,代码行数:41,


示例25: action_gal_save_custom_view_cb

static voidaction_gal_save_custom_view_cb (GtkAction *action,                                EBookShellView *book_shell_view){	EBookShellContent *book_shell_content;	EShellView *shell_view;	EAddressbookView *address_view;	GalViewInstance *view_instance;	/* All shell views respond to the activation of this action,	 * which is defined by EShellWindow.  But only the currently	 * active shell view proceeds with saving the custom view. */	shell_view = E_SHELL_VIEW (book_shell_view);	if (!e_shell_view_is_active (shell_view))		return;	book_shell_content = book_shell_view->priv->book_shell_content;	address_view = e_book_shell_content_get_current_view (book_shell_content);	view_instance = e_addressbook_view_get_view_instance (address_view);	gal_view_instance_save_as (view_instance);}
开发者ID:jdapena,项目名称:evolution,代码行数:21,



注:本文中的E_SHELL_VIEW函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ E_WARN函数代码示例
C++ E_NEW函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。