From: Michael Cronenworth Date: Wed, 27 Jan 2010 03:04:33 +0000 (-0600) Subject: Wrap timer string for now. Bug #4913 X-Git-Tag: rel-0-9-2~1 X-Git-Url: http://vcs.maemo.org/git/?p=stopish;a=commitdiff_plain;h=050d4ba087a400a814488651d0c16319f6bf6dd1 Wrap timer string for now. Bug #4913 --- 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" );