diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-06-14 20:10:15 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-06-14 20:10:15 +0200 |
commit | 25acc644932fc8629941a8d9d96d253e15b393a2 (patch) | |
tree | 725a1a569596be73bb6d2c47a4476cf5d663666b /src/default.ui | |
parent | a202984cc9fdedb6ced326653b6790890211ae60 (diff) | |
download | experiment-player-25acc644932fc8629941a8d9d96d253e15b393a2.tar.gz |
status bar to display current time and video length
* currently, when video is stopped or paused and time is changed there are no time updates
Diffstat (limited to 'src/default.ui')
-rw-r--r-- | src/default.ui | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/default.ui b/src/default.ui index 923a0c5..fd07709 100644 --- a/src/default.ui +++ b/src/default.ui @@ -145,6 +145,8 @@ <child> <object class="GtkVlcPlayer" id="player_widget"> <property name="visible">True</property> + <signal name="time_changed" handler="player_widget_time_changed_cb" object="player_window_statusbar_time"/> + <signal name="length_changed" handler="player_widget_length_changed_cb" object="player_window_statusbar_length"/> </object> <packing> <property name="position">1</property> @@ -237,6 +239,42 @@ audio-volume-medium</property> <property name="position">2</property> </packing> </child> + <child> + <object class="GtkStatusbar" id="player_window_statusbar"> + <property name="visible">True</property> + <property name="spacing">2</property> + <child> + <object class="GtkLabel" id="player_window_statusbar_time"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Time: 0:00</property> + <property name="width_chars">15</property> + <property name="single_line_mode">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="player_window_statusbar_length"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Length: 0:00</property> + <property name="width_chars">15</property> + <property name="single_line_mode">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="position">3</property> + </packing> + </child> </object> </child> </object> |