public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Make bluetooth-properties fit on smaller displays
@ 2008-09-28 17:44 Mario_Limonciello
  2008-09-29  9:07 ` Marcel Holtmann
  0 siblings, 1 reply; 14+ messages in thread
From: Mario_Limonciello @ 2008-09-28 17:44 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 400 bytes --]

Hi:

Ubuntu was carrying a "hildon" patch to make the bluetooth-properties application fit on smaller form factors for lpia.  We've adapted the patch to be applicable to all platforms.  It changes the layout of the bluetooth-properties window to be better for small displays without a loss of functionality.

Regards

Mario Limonciello 
Dell | Linux Engineering 
Mario_Limonciello@Dell.com 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 06_preferences-horizontal-layout.patch --]
[-- Type: text/x-patch; name="06_preferences-horizontal-layout.patch", Size: 1867 bytes --]

diff -Nur -x '*.orig' -x '*~' bluez-gnome-1.5/properties/adapter.c bluez-gnome-1.5.new/properties/adapter.c
--- bluez-gnome-1.5/properties/adapter.c	2008-09-28 11:47:41.000000000 -0500
+++ bluez-gnome-1.5.new/properties/adapter.c	2008-09-28 11:47:51.000000000 -0500
@@ -208,11 +208,7 @@
 	}
 
 	update_buttons(adapter, paired, trusted, connected);
-
-	if (selected == TRUE)
-		gtk_widget_show(adapter->button_trusted);
-	else
-		gtk_widget_hide(adapter->button_trusted);
+	gtk_widget_set_sensitive(adapter->button_trusted, selected);
 }
 
 static void row_callback(GtkTreeModel *model, GtkTreePath  *path,
@@ -379,7 +375,7 @@
 		timeout = 0;
 	}
 
-	mainbox = gtk_vbox_new(FALSE, 18);
+	mainbox = gtk_hbox_new(FALSE, 12);
 	gtk_container_set_border_width(GTK_CONTAINER(mainbox), 12);
 
 	gtk_notebook_prepend_page(GTK_NOTEBOOK(adapter->notebook),
@@ -389,6 +385,9 @@
 
 	adapter->child = mainbox;
 
+	mainbox = gtk_vbox_new (FALSE, 18);
+	gtk_container_add(GTK_CONTAINER (GTK_CONTAINER (adapter->child)), mainbox);
+
 	vbox = gtk_vbox_new(FALSE, 6);
 	gtk_box_pack_start(GTK_BOX(mainbox), vbox, FALSE, FALSE, 0);
 
@@ -489,7 +488,7 @@
 					G_CALLBACK(focus_callback), adapter);
 
 	vbox = gtk_vbox_new(FALSE, 6);
-	gtk_box_pack_start(GTK_BOX(mainbox), vbox, TRUE, TRUE, 0);
+	gtk_box_pack_start(GTK_BOX(adapter->child), vbox, TRUE, TRUE, 0);
 
 	label = create_label(_("Known devices"));
 	gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
@@ -535,9 +534,9 @@
 	adapter->button_delete = button;
 
 	button = gtk_button_new_with_mnemonic(NULL);
-	gtk_widget_set_no_show_all(button, TRUE);
 	gtk_container_add(GTK_CONTAINER(buttonbox), button);
-
+	gtk_button_set_label(GTK_BUTTON(button),_("Set _Trusted"));
+	gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE);
 	g_signal_connect(G_OBJECT(button), "clicked",
 				G_CALLBACK(trusted_callback), adapter);
 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-10-01 16:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 17:44 [PATCH] Make bluetooth-properties fit on smaller displays Mario_Limonciello
2008-09-29  9:07 ` Marcel Holtmann
2008-09-29  9:15   ` Bastien Nocera
2008-09-29 15:05     ` Mario_Limonciello
2008-09-29 15:22       ` Bastien Nocera
2008-09-29 16:47         ` Emmet Hikory
2008-09-29 23:41         ` Marcel Holtmann
2008-09-30  8:00         ` David Sainty
2008-09-30  8:17           ` Marcel Holtmann
2008-09-30  8:56             ` David Sainty
2008-09-30 13:38               ` Mario_Limonciello
2008-09-30 22:14                 ` David Sainty
2008-10-01 16:26                   ` Jim Carter
2008-10-01 16:33                     ` Bastien Nocera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox