Mercurial > audlegacy-plugins
comparison src/skins/ui_main.c @ 2607:2d3ddf80cffd
remove few equalizerwin related if 0's
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Wed, 21 May 2008 14:53:26 +0200 |
parents | b53841a1b5d3 |
children | 857910a58188 |
comparison
equal
deleted
inserted
replaced
2606:b53841a1b5d3 | 2607:2d3ddf80cffd |
---|---|
51 #include "ui_main.h" | 51 #include "ui_main.h" |
52 #include "ui_dock.h" | 52 #include "ui_dock.h" |
53 #include "icons-stock.h" | 53 #include "icons-stock.h" |
54 #include "actions-mainwin.h" | 54 #include "actions-mainwin.h" |
55 #include "ui_manager.h" | 55 #include "ui_manager.h" |
56 #include "ui_equalizer.h" | |
56 #if 0 | 57 #if 0 |
57 #include "configdb.h" | 58 #include "configdb.h" |
58 #include "dnd.h" | 59 #include "dnd.h" |
59 #include "input.h" | 60 #include "input.h" |
60 #include "main.h" | 61 #include "main.h" |
62 #include "playlist.h" | 63 #include "playlist.h" |
63 #include "pluginenum.h" | 64 #include "pluginenum.h" |
64 #include "strings.h" | 65 #include "strings.h" |
65 #include "ui_credits.h" | 66 #include "ui_credits.h" |
66 #include "ui_dock.h" | 67 #include "ui_dock.h" |
67 #include "ui_equalizer.h" | |
68 #include "ui_fileinfo.h" | 68 #include "ui_fileinfo.h" |
69 #include "ui_fileopener.h" | 69 #include "ui_fileopener.h" |
70 #include "ui_hints.h" | 70 #include "ui_hints.h" |
71 #include "ui_jumptotrack.h" | 71 #include "ui_jumptotrack.h" |
72 #include "ui_main_evlisteners.h" | 72 #include "ui_main_evlisteners.h" |
1615 mainwin_volume_motion_cb(GtkWidget *widget, gint pos) | 1615 mainwin_volume_motion_cb(GtkWidget *widget, gint pos) |
1616 { | 1616 { |
1617 | 1617 |
1618 gint vol = (pos * 100) / 51; | 1618 gint vol = (pos * 100) / 51; |
1619 mainwin_adjust_volume_motion(vol); | 1619 mainwin_adjust_volume_motion(vol); |
1620 #if 0 | |
1621 equalizerwin_set_volume_slider(vol); | 1620 equalizerwin_set_volume_slider(vol); |
1622 #endif | |
1623 } | 1621 } |
1624 | 1622 |
1625 gboolean | 1623 gboolean |
1626 mainwin_volume_release_cb(GtkWidget *widget, gint pos) | 1624 mainwin_volume_release_cb(GtkWidget *widget, gint pos) |
1627 { | 1625 { |
1638 void | 1636 void |
1639 mainwin_balance_motion_cb(GtkWidget *widget, gint pos) | 1637 mainwin_balance_motion_cb(GtkWidget *widget, gint pos) |
1640 { | 1638 { |
1641 gint bal = ((pos - 12) * 100) / 12; | 1639 gint bal = ((pos - 12) * 100) / 12; |
1642 mainwin_adjust_balance_motion(bal); | 1640 mainwin_adjust_balance_motion(bal); |
1643 #if 0 | |
1644 equalizerwin_set_balance_slider(bal); | 1641 equalizerwin_set_balance_slider(bal); |
1645 #endif | |
1646 } | 1642 } |
1647 | 1643 |
1648 void | 1644 void |
1649 mainwin_balance_release_cb(GtkWidget *widget, gint pos) | 1645 mainwin_balance_release_cb(GtkWidget *widget, gint pos) |
1650 { | 1646 { |
1660 vol = MAX(vl, vr); | 1656 vol = MAX(vl, vr); |
1661 vol = CLAMP(vol + diff, 0, 100); | 1657 vol = CLAMP(vol + diff, 0, 100); |
1662 | 1658 |
1663 mainwin_adjust_volume_motion(vol); | 1659 mainwin_adjust_volume_motion(vol); |
1664 mainwin_set_volume_slider(vol); | 1660 mainwin_set_volume_slider(vol); |
1665 #if 0 | |
1666 equalizerwin_set_volume_slider(vol); | 1661 equalizerwin_set_volume_slider(vol); |
1667 #endif | 1662 |
1668 if (mainwin_volume_release_timeout) | 1663 if (mainwin_volume_release_timeout) |
1669 g_source_remove(mainwin_volume_release_timeout); | 1664 g_source_remove(mainwin_volume_release_timeout); |
1670 mainwin_volume_release_timeout = | 1665 mainwin_volume_release_timeout = |
1671 g_timeout_add(700, (GSourceFunc)(mainwin_volume_release_cb), NULL); | 1666 g_timeout_add(700, (GSourceFunc)(mainwin_volume_release_cb), NULL); |
1672 } | 1667 } |
1676 { | 1671 { |
1677 gint b; | 1672 gint b; |
1678 b = CLAMP(balance + diff, -100, 100); | 1673 b = CLAMP(balance + diff, -100, 100); |
1679 mainwin_adjust_balance_motion(b); | 1674 mainwin_adjust_balance_motion(b); |
1680 mainwin_set_balance_slider(b); | 1675 mainwin_set_balance_slider(b); |
1681 #if 0 | |
1682 equalizerwin_set_balance_slider(b); | 1676 equalizerwin_set_balance_slider(b); |
1683 #endif | |
1684 } | 1677 } |
1685 | 1678 |
1686 void | 1679 void |
1687 mainwin_show(gboolean show) | 1680 mainwin_show(gboolean show) |
1688 { | 1681 { |
1779 set_scaled(gboolean scaled) | 1772 set_scaled(gboolean scaled) |
1780 { | 1773 { |
1781 config.scaled = scaled; | 1774 config.scaled = scaled; |
1782 | 1775 |
1783 mainwin_set_scaled(scaled); | 1776 mainwin_set_scaled(scaled); |
1784 #if 0 | 1777 |
1785 if (config.eq_scaled_linked) | 1778 if (config.eq_scaled_linked) |
1786 equalizerwin_set_scaled(scaled); | 1779 equalizerwin_set_scaled(scaled); |
1787 #endif | |
1788 } | 1780 } |
1789 | 1781 |
1790 | 1782 |
1791 | 1783 |
1792 void | 1784 void |
1823 if (GTK_CHECK_MENU_ITEM(item)->active) | 1815 if (GTK_CHECK_MENU_ITEM(item)->active) |
1824 playlistwin_show(); | 1816 playlistwin_show(); |
1825 else | 1817 else |
1826 playlistwin_hide(); | 1818 playlistwin_hide(); |
1827 break; | 1819 break; |
1820 #endif | |
1828 case MAINWIN_GENERAL_SHOWEQWIN: | 1821 case MAINWIN_GENERAL_SHOWEQWIN: |
1829 if (GTK_CHECK_MENU_ITEM(item)->active) | 1822 if (GTK_CHECK_MENU_ITEM(item)->active) |
1830 equalizerwin_real_show(); | 1823 equalizerwin_real_show(); |
1831 else | 1824 else |
1832 equalizerwin_real_hide(); | 1825 equalizerwin_real_hide(); |
1833 break; | 1826 break; |
1834 #endif | 1827 |
1835 case MAINWIN_GENERAL_PREV: | 1828 case MAINWIN_GENERAL_PREV: |
1836 aud_playlist_prev(playlist); | 1829 aud_playlist_prev(playlist); |
1837 break; | 1830 break; |
1838 case MAINWIN_GENERAL_PLAY: | 1831 case MAINWIN_GENERAL_PLAY: |
1839 mainwin_play_pushed(); | 1832 mainwin_play_pushed(); |
2019 b = 100 - (gint) rint(((gdouble) vl / vr) * 100); | 2012 b = 100 - (gint) rint(((gdouble) vl / vr) * 100); |
2020 else | 2013 else |
2021 b = 0; | 2014 b = 0; |
2022 | 2015 |
2023 mainwin_set_volume_slider(v); | 2016 mainwin_set_volume_slider(v); |
2024 #if 0 | |
2025 equalizerwin_set_volume_slider(v); | 2017 equalizerwin_set_volume_slider(v); |
2026 #endif | |
2027 mainwin_set_balance_slider(b); | 2018 mainwin_set_balance_slider(b); |
2028 #if 0 | |
2029 equalizerwin_set_balance_slider(b); | 2019 equalizerwin_set_balance_slider(b); |
2030 #endif | |
2031 } | 2020 } |
2032 | 2021 |
2033 static void | 2022 static void |
2034 set_timer_mode(TimerMode mode) | 2023 set_timer_mode(TimerMode mode) |
2035 { | 2024 { |
2697 } | 2686 } |
2698 | 2687 |
2699 void | 2688 void |
2700 action_roll_up_equalizer( GtkToggleAction * action ) | 2689 action_roll_up_equalizer( GtkToggleAction * action ) |
2701 { | 2690 { |
2702 #if 0 | |
2703 equalizerwin_set_shade_menu_cb(gtk_toggle_action_get_active(action)); | 2691 equalizerwin_set_shade_menu_cb(gtk_toggle_action_get_active(action)); |
2704 #endif | |
2705 } | 2692 } |
2706 | 2693 |
2707 void | 2694 void |
2708 action_roll_up_player( GtkToggleAction * action ) | 2695 action_roll_up_player( GtkToggleAction * action ) |
2709 { | 2696 { |
2719 } | 2706 } |
2720 | 2707 |
2721 void | 2708 void |
2722 action_show_equalizer( GtkToggleAction * action ) | 2709 action_show_equalizer( GtkToggleAction * action ) |
2723 { | 2710 { |
2724 #if 0 | |
2725 if (gtk_toggle_action_get_active(action)) | 2711 if (gtk_toggle_action_get_active(action)) |
2726 equalizerwin_real_show(); | 2712 equalizerwin_real_show(); |
2727 else | 2713 else |
2728 equalizerwin_real_hide(); | 2714 equalizerwin_real_hide(); |
2729 #endif | |
2730 } | 2715 } |
2731 | 2716 |
2732 void | 2717 void |
2733 action_show_playlist_editor( GtkToggleAction * action ) | 2718 action_show_playlist_editor( GtkToggleAction * action ) |
2734 { | 2719 { |