bump all tooltips code to gtk 2.11.6
2007-07-23 Jens Granseuer <jensgr@gmx.net> * appearance-desktop.c: (desktop_init): bump all tooltips code to gtk 2.11.6 svn path=/trunk/; revision=7868
This commit is contained in:
parent
0e16486c79
commit
7ea1e18d5c
2 changed files with 13 additions and 8 deletions
|
@ -1,4 +1,9 @@
|
||||||
2007-07-12 Jens Granseuer <jensgr@gmx.net>
|
2007-07-23 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
|
* appearance-desktop.c: (desktop_init): bump all tooltips code to gtk
|
||||||
|
2.11.6
|
||||||
|
|
||||||
|
2007-07-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* appearance-desktop.c: Use new GTK+ convenience API for
|
* appearance-desktop.c: Use new GTK+ convenience API for
|
||||||
icon view tooltips. (#455985)
|
icon view tooltips. (#455985)
|
||||||
|
|
|
@ -728,10 +728,10 @@ wp_view_tooltip_cb (GtkWidget *widget,
|
||||||
gchar *wpfile;
|
gchar *wpfile;
|
||||||
GnomeWPItem *item;
|
GnomeWPItem *item;
|
||||||
|
|
||||||
if (gtk_icon_view_get_tooltip_context (data->wp_view,
|
if (gtk_icon_view_get_tooltip_context (data->wp_view,
|
||||||
&x, &y,
|
&x, &y,
|
||||||
keyboard_mode,
|
keyboard_mode,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
&iter))
|
&iter))
|
||||||
{
|
{
|
||||||
|
@ -740,10 +740,10 @@ wp_view_tooltip_cb (GtkWidget *widget,
|
||||||
g_free (wpfile);
|
g_free (wpfile);
|
||||||
|
|
||||||
gtk_tooltip_set_markup (tooltip, item->description);
|
gtk_tooltip_set_markup (tooltip, item->description);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -927,7 +927,7 @@ desktop_init (AppearanceData *data,
|
||||||
GtkWidget *add_button;
|
GtkWidget *add_button;
|
||||||
GtkFileFilter *filter;
|
GtkFileFilter *filter;
|
||||||
|
|
||||||
#if GTK_CHECK_VERSION (2,11,0)
|
#if GTK_CHECK_VERSION (2,11,6)
|
||||||
GtkSettings *settings;
|
GtkSettings *settings;
|
||||||
|
|
||||||
settings = gtk_settings_get_default ();
|
settings = gtk_settings_get_default ();
|
||||||
|
@ -981,7 +981,7 @@ desktop_init (AppearanceData *data,
|
||||||
data->wp_view = GTK_ICON_VIEW (glade_xml_get_widget (data->xml, "wp_view"));
|
data->wp_view = GTK_ICON_VIEW (glade_xml_get_widget (data->xml, "wp_view"));
|
||||||
gtk_icon_view_set_model (data->wp_view, GTK_TREE_MODEL (data->wp_model));
|
gtk_icon_view_set_model (data->wp_view, GTK_TREE_MODEL (data->wp_model));
|
||||||
|
|
||||||
#if GTK_CHECK_VERSION (2,11,0)
|
#if GTK_CHECK_VERSION (2,11,6)
|
||||||
g_object_set (G_OBJECT (data->wp_view), "has-tooltip", TRUE, NULL);
|
g_object_set (G_OBJECT (data->wp_view), "has-tooltip", TRUE, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue