X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstopish.c;h=bf561d63bea2d24e97e7637826a03e360e31d224;hb=050d4ba087a400a814488651d0c16319f6bf6dd1;hp=e44879d6c1251b35a93675b746e1e53b5b858d4f;hpb=3013b5cb12f359c40c50230666627a05c29ca0d2;p=stopish 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" );