gnome-bluetooth r312 - trunk/properties
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-bluetooth r312 - trunk/properties
- Date: Wed, 25 Feb 2009 14:36:23 +0000 (UTC)
Author: hadess
Date: Wed Feb 25 14:36:23 2009
New Revision: 312
URL: http://svn.gnome.org/viewvc/gnome-bluetooth?rev=312&view=rev
Log:
Move the adapter button list to the side
This makes the dialogue wider, rather than tall, which is
useful for computers with small displays.
Modified:
trunk/properties/adapter.c
Modified: trunk/properties/adapter.c
==============================================================================
--- trunk/properties/adapter.c (original)
+++ trunk/properties/adapter.c Wed Feb 25 14:36:23 2009
@@ -437,6 +437,7 @@
GtkWidget *mainbox;
GtkWidget *vbox;
+ GtkWidget *table;
GtkWidget *label;
GtkWidget *image;
GtkWidget *button;
@@ -602,18 +603,20 @@
g_signal_connect(G_OBJECT(entry), "focus-out-event",
G_CALLBACK(focus_callback), adapter);
- vbox = gtk_vbox_new(FALSE, 6);
- gtk_box_pack_start(GTK_BOX(mainbox), vbox, TRUE, TRUE, 0);
+ table = gtk_table_new(2, 2, FALSE);
+ gtk_box_pack_start(GTK_BOX(mainbox), table, TRUE, TRUE, 0);
label = create_label(_("Known devices"));
- gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
+ gtk_table_attach(GTK_TABLE(table), label, 0, 2, 0, 1,
+ GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 6);
scrolled = gtk_scrolled_window_new(NULL, NULL);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled),
GTK_SHADOW_OUT);
- gtk_container_add(GTK_CONTAINER(vbox), scrolled);
+ gtk_table_attach(GTK_TABLE(table), scrolled, 0, 1, 1, 2,
+ GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 6, 6);
model = bluetooth_client_get_device_filter_model(client,
adapter->proxy, device_filter, NULL, NULL);
@@ -632,12 +635,13 @@
gtk_container_add(GTK_CONTAINER(scrolled), tree);
- buttonbox = gtk_hbutton_box_new();
+ buttonbox = gtk_vbutton_box_new();
gtk_button_box_set_layout(GTK_BUTTON_BOX(buttonbox),
GTK_BUTTONBOX_START);
gtk_box_set_spacing(GTK_BOX(buttonbox), 6);
gtk_box_set_homogeneous(GTK_BOX(buttonbox), FALSE);
- gtk_box_pack_start(GTK_BOX(vbox), buttonbox, FALSE, FALSE, 0);
+ gtk_table_attach(GTK_TABLE(table), buttonbox, 1, 2, 1, 2,
+ GTK_FILL, GTK_FILL, 6, 6);
button = gtk_button_new_with_label(_("Setup new device..."));
image = gtk_image_new_from_stock(GTK_STOCK_ADD,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]