[empathy] irc-network-dialog: Make sure the port GtkSpinButton gets enough space
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] irc-network-dialog: Make sure the port GtkSpinButton gets enough space
- Date: Fri, 2 Nov 2012 09:30:48 +0000 (UTC)
commit 1ab4ef4318e16e1f94c8e6e66b167aa7bd3c69e7
Author: Michael Wood <michael g wood intel com>
Date: Thu Nov 1 17:14:33 2012 +0000
irc-network-dialog: Make sure the port GtkSpinButton gets enough space
Column expanding was causing the port cell to be eclipsed by the port
spin +/- buttons.
https://bugzilla.gnome.org/show_bug.cgi?id=687361
libempathy-gtk/empathy-irc-network-dialog.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-irc-network-dialog.c b/libempathy-gtk/empathy-irc-network-dialog.c
index 8164f6c..a020c4a 100644
--- a/libempathy-gtk/empathy-irc-network-dialog.c
+++ b/libempathy-gtk/empathy-irc-network-dialog.c
@@ -512,6 +512,8 @@ empathy_irc_network_dialog_show (EmpathyIrcNetwork *network,
NULL);
column = gtk_tree_view_get_column (GTK_TREE_VIEW (dialog->treeview_servers),
0);
+
+ gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
gtk_tree_view_column_set_expand (column, TRUE);
/* port */
@@ -524,11 +526,17 @@ empathy_irc_network_dialog_show (EmpathyIrcNetwork *network,
NULL);
g_signal_connect (renderer, "edited",
G_CALLBACK (irc_network_dialog_port_edited_cb), dialog);
+
gtk_tree_view_insert_column_with_attributes (
GTK_TREE_VIEW (dialog->treeview_servers),
-1, _("Port"), renderer, "text", COL_PORT,
NULL);
+ column = gtk_tree_view_get_column (GTK_TREE_VIEW (dialog->treeview_servers),
+ 1);
+ gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
+ gtk_tree_view_column_set_expand (column, TRUE);
+
/* SSL */
renderer = gtk_cell_renderer_toggle_new ();
g_object_set (renderer, "activatable", TRUE, NULL);
@@ -543,6 +551,11 @@ empathy_irc_network_dialog_show (EmpathyIrcNetwork *network,
GTK_TREE_VIEW (dialog->treeview_servers));
gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE);
+ column = gtk_tree_view_get_column (GTK_TREE_VIEW (dialog->treeview_servers),
+ 2);
+ gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
+
+ gtk_tree_view_column_set_expand (column, TRUE);
/* charset */
totem_subtitle_encoding_init (GTK_COMBO_BOX (dialog->combobox_charset));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]