diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-11-01 17:53:43 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-11-01 17:53:43 +0100 |
commit | 2de3449ed2fa7dade90647a2456727813760e2cf (patch) | |
tree | ab562cd35dd2870e66dd64a0b96abd3029e7d058 | |
parent | 8de353ced284f9e3be1c2dd04a916b96e0b14f5c (diff) |
filepath tooltip is now optional (disabled by default)
-rw-r--r-- | callbacks.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/callbacks.c b/callbacks.c index 8bb9a754..314d6cfd 100644 --- a/callbacks.c +++ b/callbacks.c @@ -106,12 +106,15 @@ main_playlist_init (GtkWidget *widget) { gtk_object_set_data (GTK_OBJECT (main_playlist.scrollbar), "ps", &main_playlist); gtk_object_set_data (GTK_OBJECT (main_playlist.hscrollbar), "ps", &main_playlist); - /*****/ - GValue value = {0, }; - g_value_init (&value, G_TYPE_BOOLEAN); - g_value_set_boolean (&value, TRUE); - g_object_set_property (G_OBJECT (widget), "has-tooltip", &value); - g_signal_connect (G_OBJECT (widget), "query-tooltip", G_CALLBACK (playlist_tooltip_handler), NULL); + // FIXME: filepath should be in properties dialog, while tooltip should be + // used to show text that doesn't fit in column width + if (conf_get_int ("playlist.showpathtooltip", 0)) { + GValue value = {0, }; + g_value_init (&value, G_TYPE_BOOLEAN); + g_value_set_boolean (&value, TRUE); + g_object_set_property (G_OBJECT (widget), "has-tooltip", &value); + g_signal_connect (G_OBJECT (widget), "query-tooltip", G_CALLBACK (playlist_tooltip_handler), NULL); + } } void |