comparison src/img-view.c @ 614:b2898f04c82e

image_osd_get() and image_osd_set() now uses flags.
author zas_
date Fri, 09 May 2008 09:58:46 +0000
parents 905688aa2317
children 734b6b0a3356
comparison
equal deleted inserted replaced
613:d06f422a6673 614:b2898f04c82e
693 { 693 {
694 if (force_off && !vw->fs) return; 694 if (force_off && !vw->fs) return;
695 695
696 if (vw->fs) 696 if (vw->fs)
697 { 697 {
698 if (image_osd_get(vw->fs->imd, NULL, NULL)) 698 if (image_osd_get(vw->fs->imd, NULL))
699 { 699 {
700 image_osd_set(vw->imd, TRUE, TRUE); 700 image_osd_set(vw->imd, OSD_SHOW_INFO | OSD_SHOW_STATUS);
701 } 701 }
702 702
703 fullscreen_stop(vw->fs); 703 fullscreen_stop(vw->fs);
704 } 704 }
705 else 705 else
710 g_signal_connect(G_OBJECT(vw->fs->window), "key_press_event", 710 g_signal_connect(G_OBJECT(vw->fs->window), "key_press_event",
711 G_CALLBACK(view_window_key_press_cb), vw); 711 G_CALLBACK(view_window_key_press_cb), vw);
712 712
713 if (vw->ss) vw->ss->imd = vw->fs->imd; 713 if (vw->ss) vw->ss->imd = vw->fs->imd;
714 714
715 if (image_osd_get(vw->imd, NULL, NULL)) 715 if (image_osd_get(vw->imd, NULL))
716 { 716 {
717 image_osd_set(vw->imd, FALSE, FALSE); 717 image_osd_set(vw->imd, OSD_SHOW_NOTHING);
718 image_osd_set(vw->fs->imd, TRUE, TRUE); 718 image_osd_set(vw->fs->imd, OSD_SHOW_INFO | OSD_SHOW_STATUS);
719 } 719 }
720 } 720 }
721 } 721 }
722 722
723 static void view_overlay_toggle(ViewWindow *vw) 723 static void view_overlay_toggle(ViewWindow *vw)