comparison src/image.c @ 1482:dac747d99394

fixed keyboard focus on start-up https://sourceforge.net/tracker/?func=detail&aid=2707025&group_id=222125&atid=1054680
author nadvornik
date Sat, 28 Mar 2009 15:51:21 +0000
parents 96897bd5f6cd
children 5f49f305a6b6
comparison
equal deleted inserted replaced
1481:96897bd5f6cd 1482:dac747d99394
1553 1553
1554 gtk_frame_set_shadow_type(GTK_FRAME(imd->frame), GTK_SHADOW_NONE); 1554 gtk_frame_set_shadow_type(GTK_FRAME(imd->frame), GTK_SHADOW_NONE);
1555 gtk_container_set_border_width(GTK_CONTAINER(imd->frame), selectable ? 4 : 0); 1555 gtk_container_set_border_width(GTK_CONTAINER(imd->frame), selectable ? 4 : 0);
1556 } 1556 }
1557 1557
1558 void image_grab_focus(ImageWindow *imd)
1559 {
1560 if (imd->has_frame)
1561 {
1562 gtk_widget_grab_focus(imd->frame);
1563 }
1564 else
1565 {
1566 gtk_widget_grab_focus(imd->widget);
1567 }
1568 }
1569
1570
1558 /* 1571 /*
1559 *------------------------------------------------------------------- 1572 *-------------------------------------------------------------------
1560 * prefs sync 1573 * prefs sync
1561 *------------------------------------------------------------------- 1574 *-------------------------------------------------------------------
1562 */ 1575 */