[gucharmap] Don't allow the charmap side pane to shrink too much
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gucharmap] Don't allow the charmap side pane to shrink too much
- Date: Thu, 15 Dec 2011 18:40:41 +0000 (UTC)
commit f9d764948febe16016c68f1b4c693bfcf4245163
Author: Christian Persch <chpe gnome org>
Date: Wed Dec 14 23:15:39 2011 +0100
Don't allow the charmap side pane to shrink too much
Also, ellipsise the text in the side pane.
https://bugzilla.gnome.org/show_bug.cgi?id=666144
gucharmap/gucharmap-chapters-view.c | 4 ++++
gucharmap/gucharmap-charmap.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gucharmap/gucharmap-chapters-view.c b/gucharmap/gucharmap-chapters-view.c
index 556e0a5..dfdd091 100644
--- a/gucharmap/gucharmap-chapters-view.c
+++ b/gucharmap/gucharmap-chapters-view.c
@@ -59,6 +59,10 @@ gucharmap_chapters_view_init (GucharmapChaptersView *view)
priv = view->priv = G_TYPE_INSTANCE_GET_PRIVATE (view, GUCHARMAP_TYPE_CHAPTERS_VIEW, GucharmapChaptersViewPrivate);
cell = gtk_cell_renderer_text_new ();
+ g_object_set (cell,
+ "ellipsize", PANGO_ELLIPSIZE_END,
+ "ellipsize-set", TRUE,
+ NULL);
column = priv->column = gtk_tree_view_column_new ();
gtk_tree_view_column_pack_start (column, cell, FALSE);
gtk_tree_view_column_add_attribute (column, cell, "text", GUCHARMAP_CHAPTERS_MODEL_COLUMN_LABEL);
diff --git a/gucharmap/gucharmap-charmap.c b/gucharmap/gucharmap-charmap.c
index 90d6f4d..c2e371f 100644
--- a/gucharmap/gucharmap-charmap.c
+++ b/gucharmap/gucharmap-charmap.c
@@ -1094,7 +1094,7 @@ gucharmap_charmap_init (GucharmapCharmap *charmap)
gtk_container_add (GTK_CONTAINER (scrolled_window), view);
gtk_widget_show (view);
- gtk_paned_pack1 (GTK_PANED (charmap), scrolled_window, FALSE, TRUE);
+ gtk_paned_pack1 (GTK_PANED (charmap), scrolled_window, FALSE, FALSE);
gtk_widget_show (scrolled_window);
/* Right pane */
@@ -1182,7 +1182,7 @@ gucharmap_charmap_init (GucharmapCharmap *charmap)
g_signal_connect (priv->notebook, "switch-page",
G_CALLBACK (notebook_switch_page), charmap);
- gtk_paned_pack2 (GTK_PANED (charmap), priv->notebook, TRUE, TRUE);
+ gtk_paned_pack2 (GTK_PANED (charmap), priv->notebook, TRUE, FALSE);
gtk_widget_show (priv->notebook);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]