Mercurial > audlegacy
comparison src/audacious/ui_main.c @ 2821:ade60a2c52fb trunk
[svn] beginning of widgetcore rewrite
author | desowin |
---|---|
date | Thu, 07 Jun 2007 03:54:12 -0700 |
parents | bf2d80abf76e |
children | 1f17d4cdcc53 |
comparison
equal
deleted
inserted
replaced
2820:81604260bc08 | 2821:ade60a2c52fb |
---|---|
123 gint seek_state = MAINWIN_SEEK_NIL; | 123 gint seek_state = MAINWIN_SEEK_NIL; |
124 gint seek_initial_pos = 0; | 124 gint seek_initial_pos = 0; |
125 | 125 |
126 static GdkPixmap *mainwin_bg = NULL, *mainwin_bg_x2 = NULL; | 126 static GdkPixmap *mainwin_bg = NULL, *mainwin_bg_x2 = NULL; |
127 | 127 |
128 static PButton *mainwin_menubtn; | 128 static GtkWidget *mainwin_menubtn; |
129 static PButton *mainwin_minimize, *mainwin_shade, *mainwin_close; | 129 static GtkWidget *mainwin_minimize, *mainwin_shade, *mainwin_close; |
130 | 130 |
131 static PButton *mainwin_rew, *mainwin_fwd; | 131 static GtkWidget *mainwin_rew, *mainwin_fwd; |
132 static PButton *mainwin_eject; | 132 static GtkWidget *mainwin_eject; |
133 static PButton *mainwin_play, *mainwin_pause, *mainwin_stop; | 133 static GtkWidget *mainwin_play, *mainwin_pause, *mainwin_stop; |
134 | 134 |
135 TButton *mainwin_shuffle, *mainwin_repeat, *mainwin_eq, *mainwin_pl; | 135 TButton *mainwin_shuffle, *mainwin_repeat, *mainwin_eq, *mainwin_pl; |
136 TextBox *mainwin_info; | 136 TextBox *mainwin_info; |
137 TextBox *mainwin_stime_min, *mainwin_stime_sec; | 137 TextBox *mainwin_stime_min, *mainwin_stime_sec; |
138 | 138 |
288 widget_hide(WIDGET(mainwin_sposition)); | 288 widget_hide(WIDGET(mainwin_sposition)); |
289 widget_hide(WIDGET(mainwin_stime_min)); | 289 widget_hide(WIDGET(mainwin_stime_min)); |
290 widget_hide(WIDGET(mainwin_stime_sec)); | 290 widget_hide(WIDGET(mainwin_stime_sec)); |
291 } | 291 } |
292 | 292 |
293 mainwin_shade->pb_ny = mainwin_shade->pb_py = 27; | |
294 } | 293 } |
295 else { | 294 else { |
296 gint height = !bmp_active_skin->properties.mainwin_height ? MAINWIN_HEIGHT : | 295 gint height = !bmp_active_skin->properties.mainwin_height ? MAINWIN_HEIGHT : |
297 bmp_active_skin->properties.mainwin_height; | 296 bmp_active_skin->properties.mainwin_height; |
298 | 297 |
311 widget_hide(WIDGET(mainwin_stime_min)); | 310 widget_hide(WIDGET(mainwin_stime_min)); |
312 widget_hide(WIDGET(mainwin_stime_sec)); | 311 widget_hide(WIDGET(mainwin_stime_sec)); |
313 widget_hide(WIDGET(mainwin_sposition)); | 312 widget_hide(WIDGET(mainwin_sposition)); |
314 | 313 |
315 textbox_set_scroll(mainwin_info, cfg.autoscroll); | 314 textbox_set_scroll(mainwin_info, cfg.autoscroll); |
316 mainwin_shade->pb_ny = mainwin_shade->pb_py = 18; | |
317 } | 315 } |
318 | 316 |
319 draw_main_window(TRUE); | 317 draw_main_window(TRUE); |
320 } | 318 } |
321 | 319 |
523 gdk_window_clear(mainwin->window); | 521 gdk_window_clear(mainwin->window); |
524 | 522 |
525 } | 523 } |
526 else { | 524 else { |
527 for (wl = mainwin_wlist; wl; wl = g_list_next(wl)) { | 525 for (wl = mainwin_wlist; wl; wl = g_list_next(wl)) { |
526 if(AUDACIOUS_IS_PBUTTON(wl->data)) continue; | |
528 w = WIDGET(wl->data); | 527 w = WIDGET(wl->data); |
529 | 528 |
530 if (!w->redraw || !w->visible) | 529 if (!w->redraw || !w->visible) |
531 continue; | 530 continue; |
532 | 531 |
710 if (bmp_active_skin->properties.mainwin_position_x && bmp_active_skin->properties.mainwin_position_y) | 709 if (bmp_active_skin->properties.mainwin_position_x && bmp_active_skin->properties.mainwin_position_y) |
711 widget_move(WIDGET(mainwin_position), bmp_active_skin->properties.mainwin_position_x, | 710 widget_move(WIDGET(mainwin_position), bmp_active_skin->properties.mainwin_position_x, |
712 bmp_active_skin->properties.mainwin_position_y); | 711 bmp_active_skin->properties.mainwin_position_y); |
713 | 712 |
714 if (bmp_active_skin->properties.mainwin_previous_x && bmp_active_skin->properties.mainwin_previous_y) | 713 if (bmp_active_skin->properties.mainwin_previous_x && bmp_active_skin->properties.mainwin_previous_y) |
715 widget_move(WIDGET(mainwin_rew), bmp_active_skin->properties.mainwin_previous_x, | 714 gtk_fixed_move(GTK_FIXED(SKINNED_WINDOW(mainwin)->fixed), mainwin_rew, bmp_active_skin->properties.mainwin_previous_x, |
716 bmp_active_skin->properties.mainwin_previous_y); | 715 bmp_active_skin->properties.mainwin_previous_y); |
717 | 716 |
718 if (bmp_active_skin->properties.mainwin_play_x && bmp_active_skin->properties.mainwin_play_y) | 717 if (bmp_active_skin->properties.mainwin_play_x && bmp_active_skin->properties.mainwin_play_y) |
719 widget_move(WIDGET(mainwin_play), bmp_active_skin->properties.mainwin_play_x, | 718 gtk_fixed_move(GTK_FIXED(SKINNED_WINDOW(mainwin)->fixed), GTK_WIDGET(mainwin_play), bmp_active_skin->properties.mainwin_play_x, |
720 bmp_active_skin->properties.mainwin_play_y); | 719 bmp_active_skin->properties.mainwin_play_y); |
721 | 720 |
722 if (bmp_active_skin->properties.mainwin_pause_x && bmp_active_skin->properties.mainwin_pause_y) | 721 if (bmp_active_skin->properties.mainwin_pause_x && bmp_active_skin->properties.mainwin_pause_y) |
723 widget_move(WIDGET(mainwin_pause), bmp_active_skin->properties.mainwin_pause_x, | 722 gtk_fixed_move(GTK_FIXED(SKINNED_WINDOW(mainwin)->fixed), GTK_WIDGET(mainwin_pause), bmp_active_skin->properties.mainwin_pause_x, |
724 bmp_active_skin->properties.mainwin_pause_y); | 723 bmp_active_skin->properties.mainwin_pause_y); |
725 | 724 |
726 if (bmp_active_skin->properties.mainwin_stop_x && bmp_active_skin->properties.mainwin_stop_y) | 725 if (bmp_active_skin->properties.mainwin_stop_x && bmp_active_skin->properties.mainwin_stop_y) |
727 widget_move(WIDGET(mainwin_stop), bmp_active_skin->properties.mainwin_stop_x, | 726 gtk_fixed_move(GTK_FIXED(SKINNED_WINDOW(mainwin)->fixed), GTK_WIDGET(mainwin_stop), bmp_active_skin->properties.mainwin_stop_x, |
728 bmp_active_skin->properties.mainwin_stop_y); | 727 bmp_active_skin->properties.mainwin_stop_y); |
729 | 728 |
730 if (bmp_active_skin->properties.mainwin_next_x && bmp_active_skin->properties.mainwin_next_y) | 729 if (bmp_active_skin->properties.mainwin_next_x && bmp_active_skin->properties.mainwin_next_y) |
731 widget_move(WIDGET(mainwin_fwd), bmp_active_skin->properties.mainwin_next_x, | 730 gtk_fixed_move(GTK_FIXED(SKINNED_WINDOW(mainwin)->fixed), GTK_WIDGET(mainwin_fwd), bmp_active_skin->properties.mainwin_next_x, |
732 bmp_active_skin->properties.mainwin_next_y); | 731 bmp_active_skin->properties.mainwin_next_y); |
733 | 732 |
734 if (bmp_active_skin->properties.mainwin_eject_x && bmp_active_skin->properties.mainwin_eject_y) | 733 if (bmp_active_skin->properties.mainwin_eject_x && bmp_active_skin->properties.mainwin_eject_y) |
735 widget_move(WIDGET(mainwin_eject), bmp_active_skin->properties.mainwin_eject_x, | 734 gtk_fixed_move(GTK_FIXED(SKINNED_WINDOW(mainwin)->fixed), GTK_WIDGET(mainwin_eject), bmp_active_skin->properties.mainwin_eject_x, |
736 bmp_active_skin->properties.mainwin_eject_y); | 735 bmp_active_skin->properties.mainwin_eject_y); |
737 | 736 |
738 if (bmp_active_skin->properties.mainwin_eqbutton_x && bmp_active_skin->properties.mainwin_eqbutton_y) | 737 if (bmp_active_skin->properties.mainwin_eqbutton_x && bmp_active_skin->properties.mainwin_eqbutton_y) |
739 widget_move(WIDGET(mainwin_eq), bmp_active_skin->properties.mainwin_eqbutton_x, | 738 widget_move(WIDGET(mainwin_eq), bmp_active_skin->properties.mainwin_eqbutton_x, |
740 bmp_active_skin->properties.mainwin_eqbutton_y); | 739 bmp_active_skin->properties.mainwin_eqbutton_y); |
754 if (bmp_active_skin->properties.mainwin_about_x && bmp_active_skin->properties.mainwin_about_y) | 753 if (bmp_active_skin->properties.mainwin_about_x && bmp_active_skin->properties.mainwin_about_y) |
755 widget_move(WIDGET(mainwin_about), bmp_active_skin->properties.mainwin_about_x, | 754 widget_move(WIDGET(mainwin_about), bmp_active_skin->properties.mainwin_about_x, |
756 bmp_active_skin->properties.mainwin_about_y); | 755 bmp_active_skin->properties.mainwin_about_y); |
757 | 756 |
758 if (bmp_active_skin->properties.mainwin_minimize_x && bmp_active_skin->properties.mainwin_minimize_y) | 757 if (bmp_active_skin->properties.mainwin_minimize_x && bmp_active_skin->properties.mainwin_minimize_y) |
759 widget_move(WIDGET(mainwin_minimize), cfg.player_shaded ? 244 : bmp_active_skin->properties.mainwin_minimize_x, | 758 gtk_fixed_move(GTK_FIXED(SKINNED_WINDOW(mainwin)->fixed), GTK_WIDGET(mainwin_minimize), cfg.player_shaded ? 244 : bmp_active_skin->properties.mainwin_minimize_x, |
760 cfg.player_shaded ? 3 : bmp_active_skin->properties.mainwin_minimize_y); | 759 cfg.player_shaded ? 3 : bmp_active_skin->properties.mainwin_minimize_y); |
761 | 760 |
762 if (bmp_active_skin->properties.mainwin_shade_x && bmp_active_skin->properties.mainwin_shade_y) | 761 if (bmp_active_skin->properties.mainwin_shade_x && bmp_active_skin->properties.mainwin_shade_y) |
763 widget_move(WIDGET(mainwin_shade), cfg.player_shaded ? 254 : bmp_active_skin->properties.mainwin_shade_x, | 762 gtk_fixed_move(GTK_FIXED(SKINNED_WINDOW(mainwin)->fixed), GTK_WIDGET(mainwin_shade), cfg.player_shaded ? 254 : bmp_active_skin->properties.mainwin_shade_x, |
764 cfg.player_shaded ? 3 : bmp_active_skin->properties.mainwin_shade_y); | 763 cfg.player_shaded ? 3 : bmp_active_skin->properties.mainwin_shade_y); |
765 | 764 |
766 if (bmp_active_skin->properties.mainwin_close_x && bmp_active_skin->properties.mainwin_close_y) | 765 if (bmp_active_skin->properties.mainwin_close_x && bmp_active_skin->properties.mainwin_close_y) |
767 widget_move(WIDGET(mainwin_close), cfg.player_shaded ? 264 : bmp_active_skin->properties.mainwin_close_x, | 766 gtk_fixed_move(GTK_FIXED(SKINNED_WINDOW(mainwin)->fixed), GTK_WIDGET(mainwin_close), cfg.player_shaded ? 264 : bmp_active_skin->properties.mainwin_close_x, |
768 cfg.player_shaded ? 3 : bmp_active_skin->properties.mainwin_close_y); | 767 cfg.player_shaded ? 3 : bmp_active_skin->properties.mainwin_close_y); |
769 | 768 |
770 /* visibility attributes */ | 769 /* visibility attributes */ |
771 if (bmp_active_skin->properties.mainwin_menurow_visible) | 770 if (bmp_active_skin->properties.mainwin_menurow_visible) |
772 widget_show(WIDGET(mainwin_menurow)); | 771 widget_show(WIDGET(mainwin_menurow)); |
1190 static gboolean | 1189 static gboolean |
1191 mainwin_focus_in(GtkWidget * window, | 1190 mainwin_focus_in(GtkWidget * window, |
1192 GdkEventFocus * event, | 1191 GdkEventFocus * event, |
1193 gpointer data) | 1192 gpointer data) |
1194 { | 1193 { |
1195 mainwin_menubtn->pb_allow_draw = TRUE; | |
1196 mainwin_minimize->pb_allow_draw = TRUE; | |
1197 mainwin_shade->pb_allow_draw = TRUE; | |
1198 mainwin_close->pb_allow_draw = TRUE; | |
1199 draw_main_window(TRUE); | 1194 draw_main_window(TRUE); |
1200 | 1195 |
1201 return TRUE; | 1196 return TRUE; |
1202 } | 1197 } |
1203 | 1198 |
1205 static gboolean | 1200 static gboolean |
1206 mainwin_focus_out(GtkWidget * widget, | 1201 mainwin_focus_out(GtkWidget * widget, |
1207 GdkEventFocus * event, | 1202 GdkEventFocus * event, |
1208 gpointer callback_data) | 1203 gpointer callback_data) |
1209 { | 1204 { |
1210 mainwin_menubtn->pb_allow_draw = FALSE; | |
1211 mainwin_minimize->pb_allow_draw = FALSE; | |
1212 mainwin_shade->pb_allow_draw = FALSE; | |
1213 mainwin_close->pb_allow_draw = FALSE; | |
1214 draw_main_window(TRUE); | 1205 draw_main_window(TRUE); |
1215 | 1206 |
1216 return TRUE; | 1207 return TRUE; |
1217 } | 1208 } |
1218 | 1209 |
2039 } | 2030 } |
2040 else { | 2031 else { |
2041 gdk_window_set_back_pixmap(mainwin->window, mainwin_bg, 0); | 2032 gdk_window_set_back_pixmap(mainwin->window, mainwin_bg, 0); |
2042 } | 2033 } |
2043 | 2034 |
2035 GList *iter; | |
2036 for (iter = GTK_FIXED (SKINNED_WINDOW(mainwin)->fixed)->children; iter; iter = g_list_next (iter)) { | |
2037 GtkFixedChild *child_data = (GtkFixedChild *) iter->data; | |
2038 GtkWidget *child = child_data->widget; | |
2039 g_signal_emit_by_name(child, "set-double-size"); | |
2040 } | |
2041 | |
2044 draw_main_window(TRUE); | 2042 draw_main_window(TRUE); |
2045 vis_set_doublesize(mainwin_vis, doublesize); | 2043 vis_set_doublesize(mainwin_vis, doublesize); |
2046 } | 2044 } |
2047 | 2045 |
2048 void | 2046 void |
2684 } | 2682 } |
2685 | 2683 |
2686 static void | 2684 static void |
2687 mainwin_create_widgets(void) | 2685 mainwin_create_widgets(void) |
2688 { | 2686 { |
2689 mainwin_menubtn = | 2687 mainwin_menubtn = audacious_pbutton_new(); |
2690 create_pbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 6, 3, 9, 9, | 2688 audacious_pbutton_setup(mainwin_menubtn, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, |
2691 0, 0, 0, 9, mainwin_menubtn_cb, SKIN_TITLEBAR); | 2689 SKINNED_WINDOW(mainwin)->gc, 6, 3, 9, 9, 0, 0, 0, 9, SKIN_TITLEBAR); |
2692 mainwin_menubtn->pb_allow_draw = FALSE; | 2690 g_signal_connect(mainwin_menubtn, "clicked", mainwin_menubtn_cb, NULL ); |
2693 mainwin_minimize = | 2691 |
2694 create_pbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 244, 3, 9, | 2692 mainwin_minimize = audacious_pbutton_new(); |
2695 9, 9, 0, 9, 9, mainwin_minimize_cb, SKIN_TITLEBAR); | 2693 audacious_pbutton_setup(mainwin_minimize, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, |
2696 mainwin_minimize->pb_allow_draw = FALSE; | 2694 SKINNED_WINDOW(mainwin)->gc, 244, 3, 9, 9, 9, 0, 9, 9, SKIN_TITLEBAR); |
2697 mainwin_shade = | 2695 g_signal_connect(mainwin_minimize, "clicked", mainwin_minimize_cb, NULL ); |
2698 create_pbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 254, 3, 9, | 2696 |
2699 9, 0, cfg.player_shaded ? 27 : 18, 9, | 2697 mainwin_shade = audacious_pbutton_new(); |
2700 cfg.player_shaded ? 27 : 18, mainwin_shade_toggle, | 2698 audacious_pbutton_setup(mainwin_shade, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, |
2701 SKIN_TITLEBAR); | 2699 SKINNED_WINDOW(mainwin)->gc, 254, 3, 9, 9, 0, |
2702 mainwin_shade->pb_allow_draw = FALSE; | 2700 cfg.player_shaded ? 27 : 18, 9, cfg.player_shaded ? 27 : 18, SKIN_TITLEBAR); |
2703 mainwin_close = | 2701 g_signal_connect(mainwin_shade, "clicked", mainwin_shade_toggle, NULL ); |
2704 create_pbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 264, 3, 9, | 2702 |
2705 9, 18, 0, 18, 9, mainwin_quit_cb, SKIN_TITLEBAR); | 2703 mainwin_close = audacious_pbutton_new(); |
2706 mainwin_close->pb_allow_draw = FALSE; | 2704 audacious_pbutton_setup(mainwin_close, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, |
2707 | 2705 SKINNED_WINDOW(mainwin)->gc, 264, 3, 9, 9, 18, 0, 18, 9, SKIN_TITLEBAR); |
2708 mainwin_rew = | 2706 g_signal_connect(mainwin_close, "clicked", mainwin_quit_cb, NULL ); |
2709 create_pbutton_ex(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 16, 88, 23, | 2707 |
2710 18, 0, 0, 0, 18, mainwin_rev_pushed, mainwin_rev_release, | 2708 mainwin_rew = audacious_pbutton_new(); |
2711 SKIN_CBUTTONS, SKIN_CBUTTONS); | 2709 audacious_pbutton_setup(mainwin_rew, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, |
2712 mainwin_play = | 2710 SKINNED_WINDOW(mainwin)->gc, 16, 88, 23, 18, 0, 0, 0, 18, SKIN_CBUTTONS); |
2713 create_pbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 39, 88, 23, | 2711 g_signal_connect(mainwin_rew, "pressed", mainwin_rev_pushed, NULL); |
2714 18, 23, 0, 23, 18, mainwin_play_pushed, SKIN_CBUTTONS); | 2712 g_signal_connect(mainwin_rew, "released", mainwin_rev_release, NULL); |
2715 mainwin_pause = | 2713 |
2716 create_pbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 62, 88, 23, | 2714 mainwin_fwd = audacious_pbutton_new(); |
2717 18, 46, 0, 46, 18, playback_pause, SKIN_CBUTTONS); | 2715 audacious_pbutton_setup(mainwin_fwd, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, |
2718 mainwin_stop = | 2716 SKINNED_WINDOW(mainwin)->gc, 108, 88, 22, 18, 92, 0, 92, 18, SKIN_CBUTTONS); |
2719 create_pbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 85, 88, 23, | 2717 g_signal_connect(mainwin_fwd, "pressed", mainwin_fwd_pushed, NULL); |
2720 18, 69, 0, 69, 18, mainwin_stop_pushed, SKIN_CBUTTONS); | 2718 g_signal_connect(mainwin_fwd, "released", mainwin_fwd_release, NULL); |
2721 mainwin_fwd = | 2719 |
2722 create_pbutton_ex(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 108, 88, 22, | 2720 mainwin_play = audacious_pbutton_new(); |
2723 18, 92, 0, 92, 18, mainwin_fwd_pushed, mainwin_fwd_release, | 2721 audacious_pbutton_setup(mainwin_play, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, |
2724 SKIN_CBUTTONS, SKIN_CBUTTONS); | 2722 SKINNED_WINDOW(mainwin)->gc, 39, 88, 23, 18, 23, 0, 23, 18, SKIN_CBUTTONS); |
2725 | 2723 g_signal_connect(mainwin_play, "clicked", mainwin_play_pushed, NULL ); |
2726 mainwin_eject = | 2724 |
2727 create_pbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 136, 89, 22, | 2725 mainwin_pause = audacious_pbutton_new(); |
2728 16, 114, 0, 114, 16, mainwin_eject_pushed, | 2726 audacious_pbutton_setup(mainwin_pause, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, |
2729 SKIN_CBUTTONS); | 2727 SKINNED_WINDOW(mainwin)->gc, 62, 88, 23, 18, 46, 0, 46, 18, SKIN_CBUTTONS); |
2728 g_signal_connect(mainwin_pause, "clicked", playback_pause, NULL ); | |
2729 | |
2730 mainwin_stop = audacious_pbutton_new(); | |
2731 audacious_pbutton_setup(mainwin_stop, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, | |
2732 SKINNED_WINDOW(mainwin)->gc, 85, 88, 23, 18, 69, 0, 69, 18, SKIN_CBUTTONS); | |
2733 g_signal_connect(mainwin_stop, "clicked", mainwin_stop_pushed, NULL ); | |
2734 | |
2735 mainwin_eject = audacious_pbutton_new(); | |
2736 audacious_pbutton_setup(mainwin_eject, SKINNED_WINDOW(mainwin)->fixed, mainwin_bg, | |
2737 SKINNED_WINDOW(mainwin)->gc, 136, 89, 22, 16, 114, 0, 114, 16, SKIN_CBUTTONS); | |
2738 g_signal_connect(mainwin_eject, "clicked", mainwin_eject_pushed, NULL); | |
2730 | 2739 |
2731 mainwin_srew = | 2740 mainwin_srew = |
2732 create_sbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 169, 4, 8, | 2741 create_sbutton(&mainwin_wlist, mainwin_bg, SKINNED_WINDOW(mainwin)->gc, 169, 4, 8, |
2733 7, mainwin_playlist_prev); | 2742 7, mainwin_playlist_prev); |
2734 mainwin_splay = | 2743 mainwin_splay = |
2884 gtk_window_set_position(GTK_WINDOW(err), GTK_WIN_POS_CENTER); | 2893 gtk_window_set_position(GTK_WINDOW(err), GTK_WIN_POS_CENTER); |
2885 /* Dang well better set an error message or you'll see this */ | 2894 /* Dang well better set an error message or you'll see this */ |
2886 gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(err), | 2895 gtk_message_dialog_format_secondary_text(GTK_MESSAGE_DIALOG(err), |
2887 "Boo! Bad stuff! Booga Booga!"); | 2896 "Boo! Bad stuff! Booga Booga!"); |
2888 | 2897 |
2898 gtk_container_add(GTK_CONTAINER(mainwin), GTK_WIDGET(SKINNED_WINDOW(mainwin)->fixed)); | |
2889 /* XXX: eventually update widgetcore API to not need this */ | 2899 /* XXX: eventually update widgetcore API to not need this */ |
2890 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_menubtn)); | 2900 |
2891 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_minimize)); | |
2892 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_shade)); | |
2893 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_close)); | |
2894 | |
2895 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_rew)); | |
2896 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_play)); | |
2897 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_pause)); | |
2898 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_stop)); | |
2899 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_fwd)); | |
2900 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_eject)); | 2901 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_eject)); |
2901 | 2902 |
2902 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_srew)); | 2903 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_srew)); |
2903 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_splay)); | 2904 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_splay)); |
2904 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_spause)); | 2905 ui_skinned_window_widgetlist_associate(mainwin, WIDGET(mainwin_spause)); |