Mercurial > audlegacy
comparison src/audacious/ui_playlist.c @ 4505:a849b8af8db6
- make a lot of stuff static
- move PlaybackInfo to playback.h
author | mf0102 <0102@gmx.at> |
---|---|
date | Tue, 22 Apr 2008 11:28:53 +0200 |
parents | a47288ced5d5 |
children | 0fe46317167f |
comparison
equal
deleted
inserted
replaced
4504:a47288ced5d5 | 4505:a849b8af8db6 |
---|---|
45 #include "input.h" | 45 #include "input.h" |
46 #include "main.h" | 46 #include "main.h" |
47 #include "playback.h" | 47 #include "playback.h" |
48 #include "playlist.h" | 48 #include "playlist.h" |
49 #include "playlist_container.h" | 49 #include "playlist_container.h" |
50 #include "ui_playlist_manager.h" | |
51 #include "strings.h" | 50 #include "strings.h" |
52 #include "ui_equalizer.h" | 51 #include "ui_equalizer.h" |
53 #include "ui_fileopener.h" | 52 #include "ui_fileopener.h" |
54 #include "ui_main.h" | 53 #include "ui_main.h" |
55 #include "ui_manager.h" | 54 #include "ui_manager.h" |
56 #include "ui_playlist_evlisteners.h" | 55 #include "ui_playlist_evlisteners.h" |
56 #include "ui_playlist_manager.h" | |
57 #include "util.h" | 57 #include "util.h" |
58 #include "config.h" | 58 #include "config.h" |
59 | 59 |
60 #include "ui_skinned_window.h" | 60 #include "ui_skinned_window.h" |
61 #include "ui_skinned_button.h" | 61 #include "ui_skinned_button.h" |
69 GtkWidget *playlistwin; | 69 GtkWidget *playlistwin; |
70 | 70 |
71 static GMutex *resize_mutex = NULL; | 71 static GMutex *resize_mutex = NULL; |
72 | 72 |
73 static GtkWidget *playlistwin_list = NULL; | 73 static GtkWidget *playlistwin_list = NULL; |
74 GtkWidget *playlistwin_shade, *playlistwin_close; | 74 static GtkWidget *playlistwin_shade, *playlistwin_close; |
75 | 75 |
76 static gboolean playlistwin_hint_flag = FALSE; | 76 static gboolean playlistwin_hint_flag = FALSE; |
77 | 77 |
78 static GtkWidget *playlistwin_slider = NULL; | 78 static GtkWidget *playlistwin_slider; |
79 static GtkWidget *playlistwin_time_min, *playlistwin_time_sec; | 79 static GtkWidget *playlistwin_time_min, *playlistwin_time_sec; |
80 static GtkWidget *playlistwin_info, *playlistwin_sinfo; | 80 static GtkWidget *playlistwin_info, *playlistwin_sinfo; |
81 static GtkWidget *playlistwin_srew, *playlistwin_splay; | 81 static GtkWidget *playlistwin_srew, *playlistwin_splay; |
82 static GtkWidget *playlistwin_spause, *playlistwin_sstop; | 82 static GtkWidget *playlistwin_spause, *playlistwin_sstop; |
83 static GtkWidget *playlistwin_sfwd, *playlistwin_seject; | 83 static GtkWidget *playlistwin_sfwd, *playlistwin_seject; |
84 static GtkWidget *playlistwin_sscroll_up, *playlistwin_sscroll_down; | 84 static GtkWidget *playlistwin_sscroll_up, *playlistwin_sscroll_down; |
85 | 85 |
86 void playlistwin_select_search_cbt_cb( GtkWidget *called_cbt , | 86 static void playlistwin_select_search_cbt_cb(GtkWidget *called_cbt, |
87 gpointer other_cbt ); | 87 gpointer other_cbt); |
88 static gboolean playlistwin_select_search_kp_cb( GtkWidget *entry , GdkEventKey *event , | 88 static gboolean playlistwin_select_search_kp_cb(GtkWidget *entry, |
89 gpointer searchdlg_win ); | 89 GdkEventKey *event, |
90 gpointer searchdlg_win); | |
90 | 91 |
91 static gboolean playlistwin_resizing = FALSE; | 92 static gboolean playlistwin_resizing = FALSE; |
92 static gint playlistwin_resize_x, playlistwin_resize_y; | 93 static gint playlistwin_resize_x, playlistwin_resize_y; |
93 | 94 |
94 gboolean | 95 gboolean |
1898 { | 1899 { |
1899 playlistwin_select_all(); | 1900 playlistwin_select_all(); |
1900 } | 1901 } |
1901 | 1902 |
1902 | 1903 |
1903 | 1904 static void |
1904 /* playlistwin_select_search callback functions | |
1905 placed here to avoid making the code messier :) */ | |
1906 void | |
1907 playlistwin_select_search_cbt_cb(GtkWidget *called_cbt, gpointer other_cbt) | 1905 playlistwin_select_search_cbt_cb(GtkWidget *called_cbt, gpointer other_cbt) |
1908 { | 1906 { |
1909 if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(called_cbt)) == TRUE) | 1907 if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(called_cbt)) == TRUE) |
1910 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(other_cbt), FALSE); | 1908 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(other_cbt), FALSE); |
1911 return; | 1909 return; |