LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 05-30-2004, 03:26 AM   #1
captainfreedom
LQ Newbie
 
Registered: Mar 2004
Posts: 28

Rep: Reputation: 15
How to open a Combobox in GTK


Hi,
Is it possible to make the list part of a combobox drop down programically in GTK 1.2.?
First I tried to do it by sending a mouse click event:
GdkEventButton event;
event.x_root = m_pointActivate.x;
event.x_root = m_pointActivate.y;
gtk_signal_emit (GTK_OBJECT (m_widget), GDK_BUTTON_PRESS, &event);
This had no effect.
Then I tried getting the button part of the combobox and calling gtk_button_clicked:
GtkWidget *button = GTK_COMBO(m_widget)->button;
gtk_button_clicked((GtkButton *)button);
Again no effect
I'm a newbie to GTK. If there are any GTK experts out there that can help me, I would greatly appreciate it.
Ed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gtk warning cannot open display bosewicht Linux - Newbie 2 03-10-2010 07:53 PM
Gtk-WARNING **: cannot open display iamjoepesci Red Hat 2 10-17-2008 11:51 AM
gtkmm combobox problem shmonkey Programming 2 03-26-2005 05:07 PM
Gtk-WARNING **: cannot open display ocset Linux - Software 2 10-18-2004 03:18 PM
Gtk-WARNING **: cannot open display: Larsin Linux - Software 1 02-25-2004 10:47 AM


All times are GMT -5. The time now is 03:29 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration