Mercurial > pidgin
comparison finch/libgnt/gntwidget.c @ 18223:5023ad94ebc9
Notify a window when it loses focus because another window was moved to
the workspace.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 22 Jun 2007 05:40:00 +0000 |
parents | 1cedd520cd18 |
children | 11cb1436e392 980d6e1b2d21 b25cb0775be3 |
comparison
equal
deleted
inserted
replaced
18222:ef65d43190e5 | 18223:5023ad94ebc9 |
---|---|
574 if (set && !GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_HAS_FOCUS)) | 574 if (set && !GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_HAS_FOCUS)) |
575 { | 575 { |
576 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_HAS_FOCUS); | 576 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_HAS_FOCUS); |
577 g_signal_emit(widget, signals[SIG_GIVE_FOCUS], 0); | 577 g_signal_emit(widget, signals[SIG_GIVE_FOCUS], 0); |
578 } | 578 } |
579 else if (!set) | 579 else if (!set && GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_HAS_FOCUS)) |
580 { | 580 { |
581 GNT_WIDGET_UNSET_FLAGS(widget, GNT_WIDGET_HAS_FOCUS); | 581 GNT_WIDGET_UNSET_FLAGS(widget, GNT_WIDGET_HAS_FOCUS); |
582 g_signal_emit(widget, signals[SIG_LOST_FOCUS], 0); | 582 g_signal_emit(widget, signals[SIG_LOST_FOCUS], 0); |
583 } | 583 } |
584 else | 584 else |