gnome-terminal r2346 - in trunk: . src



Author: chpe
Date: Tue Jan 15 00:21:56 2008
New Revision: 2346
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2346&view=rev

Log:
2008-01-15  Christian Persch  <chpe gnome org>

	* src/profile-editor.c: (terminal_profile_edit):
	* src/terminal-window.c: (terminal_window_init): Remove last uses of
	old tooltips API.

Modified:
   trunk/ChangeLog
   trunk/src/profile-editor.c
   trunk/src/terminal-window.c

Modified: trunk/src/profile-editor.c
==============================================================================
--- trunk/src/profile-editor.c	(original)
+++ trunk/src/profile-editor.c	Tue Jan 15 00:21:56 2008
@@ -1200,7 +1200,7 @@
 	  g_free (t);
 
 	  t = g_strdup_printf (_("Palette entry %d"), i+1);
-	  gtk_tooltips_set_tip (gtk_tooltips_data_get(w)->tooltips, w, t, NULL);
+          gtk_widget_set_tooltip_text (w, t);
 	  g_free (t);
 
 	  g_object_set_data (G_OBJECT (w),

Modified: trunk/src/terminal-window.c
==============================================================================
--- trunk/src/terminal-window.c	(original)
+++ trunk/src/terminal-window.c	Tue Jan 15 00:21:56 2008
@@ -72,7 +72,6 @@
   TerminalScreen *active_term;
   GdkPixbuf *icon;
   GtkClipboard *clipboard;
-  GtkTooltips *tooltips;
   int old_char_width;
   int old_char_height;
   void *old_geometry_widget; /* only used for pointer value as it may be freed */
@@ -799,10 +798,6 @@
 
   window->priv->using_mnemonics = FALSE;
 
-  window->priv->tooltips = gtk_tooltips_new ();
-  g_object_ref (window->priv->tooltips);
-  gtk_object_sink (GTK_OBJECT (window->priv->tooltips));
-
   initialize_alpha_mode (window);
 
   /* force gtk to construct its GtkClipboard; otherwise our UI is very slow the first time we need it */
@@ -1143,11 +1138,6 @@
       g_object_unref (G_OBJECT (window->priv->icon));
     }
 
-  if (window->priv->tooltips)
-    {
-      g_object_unref (G_OBJECT (window->priv->tooltips));
-    }
-
   if (window->priv->tab_menuitems)
     {
       g_list_free (window->priv->tab_menuitems);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]