Mercurial > mplayer.hg
comparison gui/ui/gtk/fileselect.c @ 35493:411875efca3f
Introduce boolean symbolic constants.
Use them wherever suitable and useful to make code easier to read.
author | ib |
---|---|
date | Tue, 04 Dec 2012 18:36:14 +0000 |
parents | f42cc2361ee4 |
children | baf53d200292 |
comparison
equal
deleted
inserted
replaced
35492:5cbbd9ca4010 | 35493:411875efca3f |
---|---|
29 #include "gui/ui/pixmaps/up.xpm" | 29 #include "gui/ui/pixmaps/up.xpm" |
30 #include "gui/ui/pixmaps/dir.xpm" | 30 #include "gui/ui/pixmaps/dir.xpm" |
31 #include "gui/ui/pixmaps/file.xpm" | 31 #include "gui/ui/pixmaps/file.xpm" |
32 | 32 |
33 #include "gui/app.h" | 33 #include "gui/app.h" |
34 #include "gui/gui.h" | |
34 #include "gui/interface.h" | 35 #include "gui/interface.h" |
35 #include "gui/util/list.h" | 36 #include "gui/util/list.h" |
36 #include "gui/util/mem.h" | 37 #include "gui/util/mem.h" |
37 #include "gui/util/string.h" | 38 #include "gui/util/string.h" |
38 #include "help_mp.h" | 39 #include "help_mp.h" |
538 { | 539 { |
539 if ( !strcmp( item->data,fsSelectedDirectory ) ) i=0; | 540 if ( !strcmp( item->data,fsSelectedDirectory ) ) i=0; |
540 item=item->next; | 541 item=item->next; |
541 } | 542 } |
542 if ( i ) fsTopList_items=g_list_prepend( fsTopList_items,(gchar *)get_current_dir_name_utf8() ); | 543 if ( i ) fsTopList_items=g_list_prepend( fsTopList_items,(gchar *)get_current_dir_name_utf8() ); |
543 if ( uiMainAutoPlay ) { uiMainAutoPlay=0; uiEventHandling( evPlay,0 ); } | 544 if ( uiMainAutoPlay ) { uiMainAutoPlay=False; uiEventHandling( evPlay,0 ); } |
544 else gui( GUI_SET_STATE,(void *) GUI_STOP ); | 545 else gui( GUI_SET_STATE,(void *) GUI_STOP ); |
545 } | 546 } |
546 | 547 |
547 static void fs_Cancel_released( GtkButton * button,gpointer user_data ) | 548 static void fs_Cancel_released( GtkButton * button,gpointer user_data ) |
548 { | 549 { |