brasero r1517 - in trunk: . nautilus
- From: lmedinas svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1517 - in trunk: . nautilus
- Date: Tue, 11 Nov 2008 19:55:06 +0000 (UTC)
Author: lmedinas
Date: Tue Nov 11 19:55:06 2008
New Revision: 1517
URL: http://svn.gnome.org/viewvc/brasero?rev=1517&view=rev
Log:
2008-11-11 Luis Medinas <lmedinas gnome org>
* nautilus/nautilus-burn-bar.c (nautilus_burn_bar_init),
(nautilus_burn_bar_finalize):
Make nautilus extension use the new Gtk Tooltip API.
Modified:
trunk/ChangeLog
trunk/nautilus/nautilus-burn-bar.c
Modified: trunk/nautilus/nautilus-burn-bar.c
==============================================================================
--- trunk/nautilus/nautilus-burn-bar.c (original)
+++ trunk/nautilus/nautilus-burn-bar.c Tue Nov 11 19:55:06 2008
@@ -35,7 +35,6 @@
struct NautilusBurnBarPrivate
{
- GtkTooltips *tooltips;
GtkWidget *button;
};
@@ -130,10 +129,6 @@
bar->priv = NAUTILUS_BURN_BAR_GET_PRIVATE (bar);
- bar->priv->tooltips = gtk_tooltips_new ();
- g_object_ref (bar->priv->tooltips);
- gtk_object_sink (GTK_OBJECT (bar->priv->tooltips));
-
hbox = GTK_WIDGET (bar);
label = gtk_label_new (_("CD/DVD Creator Folder"));
@@ -148,10 +143,8 @@
G_CALLBACK (button_clicked_cb),
bar);
- gtk_tooltips_set_tip (GTK_TOOLTIPS (bar->priv->tooltips),
- bar->priv->button,
- _("Write contents to a CD or DVD disc"),
- NULL);
+ gtk_widget_set_tooltip_text (bar->priv->button, _("Write contents to a CD or DVD disc"));
+
}
static void
@@ -166,10 +159,6 @@
g_return_if_fail (bar->priv != NULL);
- if (bar->priv->tooltips != NULL) {
- g_object_unref (bar->priv->tooltips);
- }
-
G_OBJECT_CLASS (nautilus_burn_bar_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]