gnome-bluetooth r478 - trunk/common
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-bluetooth r478 - trunk/common
- Date: Fri, 13 Mar 2009 00:55:52 +0000 (UTC)
Author: hadess
Date: Fri Mar 13 00:55:52 2009
New Revision: 478
URL: http://svn.gnome.org/viewvc/gnome-bluetooth?rev=478&view=rev
Log:
Hide the label when we don't have a title
Modified:
trunk/common/bluetooth-chooser.c
Modified: trunk/common/bluetooth-chooser.c
==============================================================================
--- trunk/common/bluetooth-chooser.c (original)
+++ trunk/common/bluetooth-chooser.c Fri Mar 13 00:55:52 2009
@@ -243,15 +243,17 @@
bluetooth_chooser_set_title (BluetoothChooser *self, const char *title)
{
BluetoothChooserPrivate *priv = BLUETOOTH_CHOOSER_GET_PRIVATE(self);
- char *str;
if (title == NULL) {
- str = g_strdup_printf ("<b>%s</b>", _("Recognized Bluetooth Devices"));
+ gtk_widget_hide (priv->label);
} else {
+ char *str;
+
str = g_strdup_printf ("<b>%s</b>", title);
+ gtk_label_set_markup (GTK_LABEL(priv->label), str);
+ g_free (str);
+ gtk_widget_show (priv->label);
}
- gtk_label_set_markup (GTK_LABEL(priv->label), str);
- g_free (str);
}
static void
@@ -581,6 +583,8 @@
gtk_box_pack_start (GTK_BOX (vbox), alignment, TRUE, TRUE, 0);
gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 0, 0, 12, 0);
+ gtk_widget_hide (priv->label);
+
/* The treeview label */
vbox = gtk_vbox_new (FALSE, 6);
gtk_widget_show (vbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]