comparison src/skins/ui_playlist.c @ 2668:a1431a900f28

introduce ui_skinned_button_set_inside
author Tomasz Mon <desowin@gmail.com>
date Fri, 30 May 2008 21:02:12 +0200
parents 726fc9f17902
children 32e99af83a3e
comparison
equal deleted inserted replaced
2667:84d34cd6aa71 2668:a1431a900f28
1579 GtkAction *action = gtk_action_group_get_action( 1579 GtkAction *action = gtk_action_group_get_action(
1580 toggleaction_group_others , "show playlist editor" ); 1580 toggleaction_group_others , "show playlist editor" );
1581 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(action) , TRUE ); 1581 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(action) , TRUE );
1582 1582
1583 config.playlist_visible = TRUE; 1583 config.playlist_visible = TRUE;
1584 UI_SKINNED_BUTTON(mainwin_pl)->inside = TRUE; 1584 ui_skinned_button_set_inside(mainwin_pl, TRUE);
1585 gtk_widget_queue_draw(mainwin_pl);
1586 1585
1587 playlistwin_set_toprow(0); 1586 playlistwin_set_toprow(0);
1588 aud_playlist_check_pos_current(aud_playlist_get_active()); 1587 aud_playlist_check_pos_current(aud_playlist_get_active());
1589 1588
1590 gtk_widget_show_all(playlistwin); 1589 gtk_widget_show_all(playlistwin);
1600 toggleaction_group_others , "show playlist editor" ); 1599 toggleaction_group_others , "show playlist editor" );
1601 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(action) , FALSE ); 1600 gtk_toggle_action_set_active( GTK_TOGGLE_ACTION(action) , FALSE );
1602 1601
1603 gtk_widget_hide(playlistwin); 1602 gtk_widget_hide(playlistwin);
1604 config.playlist_visible = FALSE; 1603 config.playlist_visible = FALSE;
1605 UI_SKINNED_BUTTON(mainwin_pl)->inside = FALSE; 1604 ui_skinned_button_set_inside(mainwin_pl, FALSE);
1606 gtk_widget_queue_draw(mainwin_pl);
1607 1605
1608 if ( config.player_visible ) 1606 if ( config.player_visible )
1609 { 1607 {
1610 gtk_window_present(GTK_WINDOW(mainwin)); 1608 gtk_window_present(GTK_WINDOW(mainwin));
1611 gtk_widget_grab_focus(mainwin); 1609 gtk_widget_grab_focus(mainwin);