GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error:No config.h How to make a transparent window

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion
Author Message
sunrain988
Familiar Face


Joined: 17 Jul 2008
Posts: 13

PostPosted: Thu Jul 17, 2008 10:36 am    Post subject: Error:No config.h How to make a transparent window Reply with quote

Recently,
I compiled my GTK programmes,it failed:
Error: config.h: No such file or derectory.
My questions:
1. How to solve it;
2. Why some GTK programmes have #include<config.h> and others have not.
3.Why some GTK programmes that have #include<config.h>,deleting this
also can be compiled.

4.How to make a transparent window.

Thanks everybody for giving help
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 526
Location: Falun, WI USA

PostPosted: Sun Jul 20, 2008 12:13 am    Post subject: Reply with quote

1) try replacing
Code: (C)
1
#include <config.h>
with
Code: (C)
1
2
3
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /* HAVE_CONFIG_H */

2 and 3) the reason for this is usually do to using automake and autoconf
4) try using gtk_window_set_opacity,
http://library.gnome.org/devel/gtk/stable/GtkWindow.html#gtk-window-set-opacity
Back to top
sunrain988
Familiar Face


Joined: 17 Jul 2008
Posts: 13

PostPosted: Mon Jul 21, 2008 2:01 am    Post subject: Thank dreblen Reply with quote

Thank dreblen for giving me a big help.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> General GTK+ Discussion All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP