[yelp/yelp-3-0] [test-view] Experimenting with always-on-top utility window for Yelp
- From: Shaun McCance <shaunm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [yelp/yelp-3-0] [test-view] Experimenting with always-on-top utility window for Yelp
- Date: Sun, 15 Nov 2009 22:37:02 +0000 (UTC)
commit c73581c8c1c3f42c9e5d1475324002a46a8ca7c0
Author: Shaun McCance <shaunm gnome org>
Date: Sun Oct 25 20:05:10 2009 -0500
[test-view] Experimenting with always-on-top utility window for Yelp
tests/test-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-view.c b/tests/test-view.c
index b01d078..57897bc 100644
--- a/tests/test-view.c
+++ b/tests/test-view.c
@@ -57,7 +57,10 @@ main (int argc, char **argv)
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_window_set_default_size (GTK_WINDOW (window), 640, 480);
+ gtk_window_set_type_hint ((GtkWindow *) window,
+ GDK_WINDOW_TYPE_HINT_UTILITY);
+ gtk_window_set_keep_above ((GtkWindow *) window, TRUE);
+ gtk_window_set_default_size (GTK_WINDOW (window), 520, 580);
g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
vbox = gtk_vbox_new (FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]