Changeset c7af2a1a45e17e991a5b22837aa5f5c9d3c0be53
- Timestamp:
- 02/28/10 14:21:44 (5 months ago)
- Author:
- Nedko Arnaudov <nedko@…>
- Children:
- 0d5a0067dd12486d570d26414152cab8f2249746
- Parents:
- 7a24d7c912698f72886e94f6098224793f520fbf
- git-committer:
- Nedko Arnaudov <nedko@arnaudov.name> / 2010-02-28T14:21:44Z+0200
- Message:
-
xrun/load progressbar reborn in new place
- Location:
- gui
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rfa67487
|
rc7af2a1a
|
|
| 250 | 250 | <property name="related_action">clear_xruns_and_max_dsp_load_action</property> |
| 251 | 251 | <property name="use_action_appearance">True</property> |
| | 252 | <property name="use_underline">True</property> |
| 252 | 253 | <property name="use_stock">True</property> |
| 253 | 254 | </object> |
| … |
… |
|
| 439 | 440 | <property name="position">204</property> |
| 440 | 441 | <child> |
| 441 | | <object class="GtkViewport" id="world_tree_viewport"> |
| 442 | | <property name="visible">True</property> |
| 443 | | <property name="resize_mode">queue</property> |
| | 442 | <object class="GtkVBox" id="left_pane_vbox"> |
| | 443 | <property name="visible">True</property> |
| | 444 | <property name="orientation">vertical</property> |
| 444 | 445 | <child> |
| 445 | | <object class="GtkTreeView" id="world_tree"> |
| | 446 | <object class="GtkViewport" id="world_tree_viewport"> |
| 446 | 447 | <property name="visible">True</property> |
| 447 | | <property name="can_focus">True</property> |
| 448 | | <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> |
| 449 | | </object> |
| | 448 | <property name="resize_mode">queue</property> |
| | 449 | <child> |
| | 450 | <object class="GtkTreeView" id="world_tree"> |
| | 451 | <property name="visible">True</property> |
| | 452 | <property name="can_focus">True</property> |
| | 453 | <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> |
| | 454 | </object> |
| | 455 | </child> |
| | 456 | </object> |
| | 457 | <packing> |
| | 458 | <property name="position">0</property> |
| | 459 | </packing> |
| | 460 | </child> |
| | 461 | <child> |
| | 462 | <object class="GtkProgressBar" id="xrun_progress_bar"> |
| | 463 | <property name="visible">True</property> |
| | 464 | </object> |
| | 465 | <packing> |
| | 466 | <property name="expand">False</property> |
| | 467 | <property name="position">1</property> |
| | 468 | </packing> |
| 450 | 469 | </child> |
| 451 | 470 | </object> |
-
|
rfa67487
|
rc7af2a1a
|
|
| 93 | 93 | GtkWidget * g_xruns_label; |
| 94 | 94 | |
| | 95 | GtkWidget * g_xrun_progress_bar; |
| | 96 | |
| 95 | 97 | graph_view_handle g_jack_view = NULL; |
| 96 | 98 | graph_view_handle g_studio_view = NULL; |
| … |
… |
|
| 324 | 326 | snprintf(tmp_buf, sizeof(tmp_buf), "%" PRIu32 " dropouts", xruns); |
| 325 | 327 | gtk_label_set_text(GTK_LABEL(g_xruns_label), tmp_buf); |
| | 328 | gtk_progress_bar_set_text(GTK_PROGRESS_BAR(g_xrun_progress_bar), tmp_buf); |
| 326 | 329 | } |
| 327 | 330 | else |
| 328 | 331 | { |
| | 332 | gtk_progress_bar_set_text(GTK_PROGRESS_BAR(g_xrun_progress_bar), "error"); |
| | 333 | gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(g_xrun_progress_bar), 0.0); |
| 329 | 334 | gtk_label_set_text(GTK_LABEL(g_xruns_label), "?"); |
| 330 | 335 | } |
| … |
… |
|
| 335 | 340 | { |
| 336 | 341 | g_jack_max_dsp_load = load; |
| | 342 | gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(g_xrun_progress_bar), load / 100.0); |
| 337 | 343 | } |
| 338 | 344 | |
| … |
… |
|
| 800 | 806 | } |
| 801 | 807 | |
| 802 | | //gtk_progress_bar_set_text(GTK_PROGRESS_BAR(g_xrun_progress_bar), status); |
| | 808 | gtk_progress_bar_set_text(GTK_PROGRESS_BAR(g_xrun_progress_bar), status); |
| 803 | 809 | gtk_label_set_text(GTK_LABEL(g_studio_status_label), name); |
| 804 | 810 | |
| … |
… |
|
| 839 | 845 | else |
| 840 | 846 | { |
| 841 | | gtk_label_set_text(GTK_LABEL(g_sample_rate_label), g_jack_state == JACK_STATE_NA ? "JACK is sick" : "JACK is stopped"); |
| | 847 | gtk_label_set_text(GTK_LABEL(g_sample_rate_label), ""); |
| 842 | 848 | gtk_label_set_text(GTK_LABEL(g_latency_label), ""); |
| 843 | 849 | gtk_label_set_text(GTK_LABEL(g_dsp_load_label), ""); |
| … |
… |
|
| 1010 | 1016 | buffer_size_clear(); |
| 1011 | 1017 | gtk_action_set_sensitive(g_clear_load_and_max_dsp_action, false); |
| | 1018 | gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(g_xrun_progress_bar), 0.0); |
| 1012 | 1019 | } |
| 1013 | 1020 | |
| … |
… |
|
| 1227 | 1234 | g_toolbar = get_gtk_builder_widget("toolbar"); |
| 1228 | 1235 | g_statusbar = GTK_STATUSBAR(get_gtk_builder_widget("statusbar")); |
| | 1236 | g_xrun_progress_bar = get_gtk_builder_widget("xrun_progress_bar"); |
| 1229 | 1237 | |
| 1230 | 1238 | g_name_dialog = get_gtk_builder_widget("name_dialog"); |