From: Alexandru C. <cs...@us...> - 2009-04-18 14:17:03
|
Update of /cvsroot/groundstation/grig2/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10664 Modified Files: grig-gtk-workarounds.c Log Message: Changed to new tooltip API. Index: grig-gtk-workarounds.c =================================================================== RCS file: /cvsroot/groundstation/grig2/src/grig-gtk-workarounds.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** grig-gtk-workarounds.c 18 Apr 2009 14:13:56 -0000 1.7 --- grig-gtk-workarounds.c 18 Apr 2009 14:16:51 -0000 1.8 *************** *** 60,64 **** GtkWidget *box; gchar *path; - GtkTooltips *tips; path = pixmap_file_name (file); --- 60,63 ---- *************** *** 71,80 **** button = gtk_button_new (); gtk_container_add (GTK_CONTAINER (button), box); - tips = gtk_tooltips_new (); - gtk_tooltips_set_tip (tips, button, tooltip, NULL); - - return button; } --- 70,76 ---- button = gtk_button_new (); + gtk_widget_set_tooltip_text (button, tooltip); gtk_container_add (GTK_CONTAINER (button), box); return button; } *************** *** 95,100 **** GtkWidget *box; gchar *path; - GtkTooltips *tips; path = pixmap_file_name (file); image = gtk_image_new_from_file (path); --- 91,96 ---- GtkWidget *box; gchar *path; + path = pixmap_file_name (file); image = gtk_image_new_from_file (path); *************** *** 106,115 **** button = gtk_button_new (); gtk_container_add (GTK_CONTAINER (button), box); - tips = gtk_tooltips_new (); - gtk_tooltips_set_tip (tips, button, tooltip, NULL); - - return button; } --- 102,108 ---- button = gtk_button_new (); + gtk_widget_set_tooltip_text (button, tooltip); gtk_container_add (GTK_CONTAINER (button), box); return button; } *************** *** 127,131 **** GtkWidget *image; GtkWidget *box; - GtkTooltips *tips; --- 120,123 ---- *************** *** 137,146 **** button = gtk_button_new (); gtk_container_add (GTK_CONTAINER (button), box); - tips = gtk_tooltips_new (); - gtk_tooltips_set_tip (tips, button, tooltip, NULL); - - return button; } --- 129,135 ---- button = gtk_button_new (); + gtk_widget_set_tooltip_text (button, tooltip); gtk_container_add (GTK_CONTAINER (button), box); return button; } |