[libpeas] Bug 699338 - Only show plugin tooltip for errors
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Bug 699338 - Only show plugin tooltip for errors
- Date: Thu, 29 May 2014 22:33:15 +0000 (UTC)
commit 4c2e25aeec777f05b1b4f6cc33942ac7db731ef6
Author: Garrett Regier <garrettregier gmail com>
Date: Wed Jan 22 22:33:25 2014 -0800
Bug 699338 - Only show plugin tooltip for errors
libpeas-gtk/peas-gtk-plugin-manager-view.c | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
---
diff --git a/libpeas-gtk/peas-gtk-plugin-manager-view.c b/libpeas-gtk/peas-gtk-plugin-manager-view.c
index bce090f..cf4d702 100644
--- a/libpeas-gtk/peas-gtk-plugin-manager-view.c
+++ b/libpeas-gtk/peas-gtk-plugin-manager-view.c
@@ -611,19 +611,13 @@ peas_gtk_plugin_manager_view_query_tooltip (GtkWidget *widget,
info = peas_gtk_plugin_manager_store_get_plugin (view->priv->store, &iter);
if (peas_plugin_info_is_available (info, &error))
- {
- gtk_tree_model_get (GTK_TREE_MODEL (view->priv->store), &iter,
- PEAS_GTK_PLUGIN_MANAGER_STORE_INFO_COLUMN, &message,
- -1);
- }
- else
- {
- message = g_markup_printf_escaped (_("<b>The plugin '%s' could not be "
- "loaded</b>\nAn error occurred: %s"),
- peas_plugin_info_get_name (info),
- error->message);
- g_error_free (error);
- }
+ return FALSE;
+
+ message = g_markup_printf_escaped (_("<b>The plugin '%s' could not be "
+ "loaded</b>\nAn error occurred: %s"),
+ peas_plugin_info_get_name (info),
+ error->message);
+ g_error_free (error);
gtk_tooltip_set_markup (tooltip, message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]