[gnome-control-center] network: Don't resize the panel or the wifi list
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Don't resize the panel or the wifi list
- Date: Fri, 28 Sep 2012 10:21:53 +0000 (UTC)
commit ccc3f0bf3ce8927cd62d9ddf208e6b1b1f1ca16d
Author: Bastien Nocera <hadess hadess net>
Date: Fri Sep 28 11:44:19 2012 +0200
network: Don't resize the panel or the wifi list
panels/network/cc-network-panel.c | 6 ++++--
panels/network/net-device-wifi.c | 1 +
panels/network/network-wifi.ui | 5 ++++-
3 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 4ba3ad4..b5e4fb3 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -563,7 +563,7 @@ panel_add_devices_columns (CcNetworkPanel *panel, GtkTreeView *treeview)
g_object_set (renderer, "stock-size", gtk_icon_size_from_name ("cc-sidebar-list"), NULL);
gtk_cell_renderer_set_padding (renderer, 4, 4);
- column = gtk_tree_view_column_new_with_attributes ("", renderer,
+ column = gtk_tree_view_column_new_with_attributes ("icon", renderer,
"icon-name", PANEL_DEVICES_COLUMN_ICON,
NULL);
gtk_tree_view_append_column (treeview, column);
@@ -572,8 +572,9 @@ panel_add_devices_columns (CcNetworkPanel *panel, GtkTreeView *treeview)
renderer = gtk_cell_renderer_text_new ();
g_object_set (renderer,
"wrap-mode", PANGO_WRAP_WORD,
+ "ellipsize", PANGO_ELLIPSIZE_END,
NULL);
- column = gtk_tree_view_column_new_with_attributes ("", renderer,
+ column = gtk_tree_view_column_new_with_attributes ("title", renderer,
"markup", PANEL_DEVICES_COLUMN_TITLE,
NULL);
gtk_tree_view_column_set_sort_column_id (column, PANEL_DEVICES_COLUMN_SORT);
@@ -1096,6 +1097,7 @@ cc_network_panel_init (CcNetworkPanel *panel)
widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
"devices_scrolledwindow"));
+ gtk_widget_set_size_request (widget, 200, -1);
context = gtk_widget_get_style_context (widget);
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_BOTTOM);
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 4746a33..4794bff 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -2055,6 +2055,7 @@ net_device_wifi_init (NetDeviceWifi *device_wifi)
renderer2 = panel_cell_renderer_text_new ();
g_object_set (renderer2,
"mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE,
+ "ellipsize", PANGO_ELLIPSIZE_END,
NULL);
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (column), renderer2, TRUE);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (column), renderer2,
diff --git a/panels/network/network-wifi.ui b/panels/network/network-wifi.ui
index 4e37bfb..9d7a30d 100644
--- a/panels/network/network-wifi.ui
+++ b/panels/network/network-wifi.ui
@@ -216,6 +216,7 @@
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="shadow_type">in</property>
+ <property name="hscrollbar_policy">never</property>
<child>
<object class="GtkTreeView" id="treeview_list">
<property name="visible">True</property>
@@ -232,7 +233,9 @@
</object>
</child>
<child>
- <object class="GtkTreeViewColumn" id="treeview_list_column"/>
+ <object class="GtkTreeViewColumn" id="treeview_list_column">
+ <property name="title">Column</property>
+ </object>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]