GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Jul 25, 2014 3:38 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to extract a Gtk_Text_View from a Glade File
PostPosted: Mon Dec 31, 2012 10:07 am 
Offline
Familiar Face

Joined: Fri Sep 23, 2011 12:04 pm
Posts: 28
I want to extract a pointer to a Text_View from a Glade File but no matter what I do the pointer is always a null pointer. I have two such Views.
The views are correctly presented on the screen and can both get the focus by clicking on them.
At this moment I am extracting the pointer as follows:
Code:
      CView := Gtk_Text_View(Get_Widget(Builder, "CView"));

I am coding this in Ada but the names of the routines are known in C/C++ too.

L. Dries


Top
 Profile  
 
 Post subject: Re: How to extract a Gtk_Text_View from a Glade File
PostPosted: Tue Jan 01, 2013 9:51 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 733
Location: UK
Hello,

My only thoughts with your code is to check the spelling of "CView" in both your Ada code and in your Glade file (it is case sensitive), also checking that you have loaded all the correct parts of the file into the Gtk Builder and that your Builder is still valid.

_________________
E.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group