[anjuta] Add tooltip for recent projects.
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] Add tooltip for recent projects.
- Date: Sun, 14 Mar 2010 21:55:31 +0000 (UTC)
commit 9fbdbb4a505e6240fcd0e24b0b9dddd54ab7c144
Author: Iasen Karakashev <ikarakashev yahoo com>
Date: Wed Mar 10 13:31:46 2010 +0100
Add tooltip for recent projects.
plugins/starter/starter.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/plugins/starter/starter.c b/plugins/starter/starter.c
index 722a25a..48fdfaf 100644
--- a/plugins/starter/starter.c
+++ b/plugins/starter/starter.c
@@ -93,6 +93,7 @@ build_recent_projects (GtkWidget *box, Starter *wcm)
{
GtkWidget *button;
GFile *file;
+ gchar *uri;
button = anjuta_starter_button_new (gtk_recent_info_get_display_name (list->data));
gtk_widget_show (button);
@@ -102,6 +103,18 @@ build_recent_projects (GtkWidget *box, Starter *wcm)
g_object_set_data_full (G_OBJECT (button), "file", file,
(GDestroyNotify)destroy_notify);
+ uri = gtk_recent_info_get_uri_display (list->data);
+ if (uri)
+ {
+ gchar *tip;
+
+ tip = g_strdup_printf (_("Open '%s'"), uri);
+ gtk_widget_set_tooltip_text (button, tip);
+
+ g_free (tip);
+ g_free (uri);
+ }
+
g_signal_connect (button, "clicked",
G_CALLBACK (recent_project_clicked_cb),
wcm);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]