projects
/
stopish
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3013b5c
)
Wrap timer string for now. Bug #4913
author
Michael Cronenworth
<michael@melchior.(none)>
Wed, 27 Jan 2010 03:04:33 +0000
(21:04 -0600)
committer
Michael Cronenworth
<michael@melchior.(none)>
Wed, 27 Jan 2010 03:04:33 +0000
(21:04 -0600)
src/stopish.c
patch
|
blob
|
history
diff --git
a/src/stopish.c
b/src/stopish.c
index
e44879d
..
bf561d6
100644
(file)
--- a/
src/stopish.c
+++ b/
src/stopish.c
@@
-166,6
+166,10
@@
static GtkWindow *stopish_new( void )
"<span font_family=\"monospace\" "
"size=\"70000\" weight=\"ultrabold\">"
"00:00:00.0</span>" );
"<span font_family=\"monospace\" "
"size=\"70000\" weight=\"ultrabold\">"
"00:00:00.0</span>" );
+ 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
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
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 );
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 );
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" );
}
else
g_printerr( "ERROR: dbus_message_iter_init() failed.\n" );