[gnumeric] enable showing of text in progress bar; temporarily disable tab pane magic to avoid increasing windo
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] enable showing of text in progress bar; temporarily disable tab pane magic to avoid increasing windo
- Date: Sat, 6 Aug 2011 22:28:26 +0000 (UTC)
commit 209fdbc722fbf76a2a04e0cdd4d7a0a81d7346f3
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Sat Aug 6 16:27:39 2011 -0600
enable showing of text in progress bar; temporarily disable tab pane magic to avoid increasing window size on sheet addition.
2011-08-05 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/wbc-gtk.c (wbc_gtk_create_status_area): enable showing of
text in progress bar; temporarily disable tab pane magic to avoid
increasing window size on sheet addition.
ChangeLog | 6 ++++++
src/wbc-gtk.c | 16 ++++++++++------
2 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0cbd6d6..a6623c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2011-08-05 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * src/wbc-gtk.c (wbc_gtk_create_status_area): enable showing of
+ text in progress bar; temporarily disable tab pane magic to avoid
+ increasing window size on sheet addition.
+
+2011-08-05 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* src/wbc-gtk.c (edit_area_button_menu): make sure everything is
initially insensitive
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index 4c1bec2..788320b 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -4914,6 +4914,9 @@ wbc_gtk_create_status_area (WBCGtk *wbcg)
wbcg->progress_bar = gtk_progress_bar_new ();
gtk_progress_bar_set_text (GTK_PROGRESS_BAR (wbcg->progress_bar), " ");
gtk_progress_bar_set_inverted (GTK_PROGRESS_BAR (wbcg->progress_bar), FALSE);
+ gtk_progress_bar_set_ellipsize (GTK_PROGRESS_BAR (wbcg->progress_bar),
+ PANGO_ELLIPSIZE_END);
+ g_object_set (G_OBJECT (wbcg->progress_bar), "show-text", TRUE, NULL);
wbcg->auto_expr_label = tmp = gtk_label_new ("");
g_object_ref (wbcg->auto_expr_label);
@@ -4937,15 +4940,16 @@ wbc_gtk_create_status_area (WBCGtk *wbcg)
gtk_widget_get_pango_context (GTK_WIDGET (wbcg->toplevel)),
gtk_style_context_get_font (gtk_widget_get_style_context (tmp), GTK_STATE_NORMAL),
"W") * 5, -1);
+
wbcg->tabs_paned = GTK_PANED (gtk_paned_new (GTK_ORIENTATION_HORIZONTAL));
gtk_paned_pack2 (wbcg->tabs_paned, wbcg->progress_bar, FALSE, TRUE);
- g_signal_connect (G_OBJECT (wbcg->tabs_paned),
- "size-allocate", G_CALLBACK (cb_paned_size_allocate),
- NULL);
- g_signal_connect (G_OBJECT (wbcg->tabs_paned),
- "button-press-event", G_CALLBACK (cb_paned_button_press),
- NULL);
+ /* g_signal_connect (G_OBJECT (wbcg->tabs_paned), */
+ /* "size-allocate", G_CALLBACK (cb_paned_size_allocate), */
+ /* NULL); */
+ /* g_signal_connect (G_OBJECT (wbcg->tabs_paned), */
+ /* "button-press-event", G_CALLBACK (cb_paned_button_press), */
+ /* NULL); */
wbcg->status_area = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
g_signal_connect (G_OBJECT (wbcg->status_area),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]