From 050d4ba087a400a814488651d0c16319f6bf6dd1 Mon Sep 17 00:00:00 2001 From: Michael Cronenworth Date: Tue, 26 Jan 2010 21:04:33 -0600 Subject: [PATCH] Wrap timer string for now. Bug #4913 --- src/stopish.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/stopish.c b/src/stopish.c index e44879d..bf561d6 100644 --- a/src/stopish.c +++ b/src/stopish.c @@ -166,6 +166,10 @@ static GtkWindow *stopish_new( void ) "" "00:00:00.0" ); + gtk_widget_set_size_request( timerLabel, 700, -1 ); + gtk_label_set_line_wrap( GTK_LABEL( timerLabel ), TRUE ); + gtk_label_set_line_wrap_mode( GTK_LABEL( timerLabel ), PANGO_WRAP_CHAR ); + gtk_misc_set_alignment( GTK_MISC( timerLabel ), 1.0f, 0.5f ); gtk_container_add( GTK_CONTAINER( vBox0 ), timerLabel ); // history area @@ -379,12 +383,16 @@ static DBusHandlerResult mce_filter_func( DBusConnection * connection, dbus_message_iter_get_basic( &iter, &rotation ); // Rotate main window - if ( !strcmp( rotation, MCE_ORIENTATION_PORTRAIT ) ) + if ( !strcmp( rotation, MCE_ORIENTATION_PORTRAIT ) ) { hildon_gtk_window_set_portrait_flags( GTK_WINDOW( appdata.main_window ), HILDON_PORTRAIT_MODE_REQUEST ); - else + gtk_widget_set_size_request( timerLabel, 400, -1 ); + } + else { hildon_gtk_window_set_portrait_flags( GTK_WINDOW( appdata.main_window ), ~HILDON_PORTRAIT_MODE_REQUEST ); + gtk_widget_set_size_request( timerLabel, 700, -1 ); + } } else g_printerr( "ERROR: dbus_message_iter_init() failed.\n" ); -- 1.7.9.5