LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 09-21-2012, 04:17 PM   #1
VarwigSoftware
LQ Newbie
 
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
GTK Notbook Change Pages How to


Hello All,

I am trying to write a function to change tabs on a click of a button. My Code is Below. It errors out saying "Gtk-CRITICAL **: gtk_notebook_set_current_page: assertion `GTK_IS_NOTEBOOK (notebook)' failed" I am showing the widget. I know that is in the gnome help.

Any Ideas?
Code:
void btn_login_clicked_cb (GtkButton *btn_login, GtkNotebook *notebook, gpointer user_data)
{
   GtkWidget *login = GTK_WIDGET(btn_login);
   gtk_button_set_label (login, "Please Wait..."); // THIS WORKS :)

   GtkWidget *nb = GTK_WIDGET(notebook);
   gtk_widget_show_all(nb);
   gtk_notebook_set_current_page (nb, 1); // THIS DOES NOT
}
Thank You
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing websites -- how to change all those URLS in all those pages? Sed? SharpyWarpy Linux - Server 5 12-21-2011 05:24 AM
How do i use wifi on my acer notbook suehast Linux - Newbie 3 09-03-2011 06:58 PM
Does Hp Pavilion tx2030 notbook support Linux? ahmedelhamahmy Linux - Laptop and Netbook 4 09-11-2009 03:30 AM
Man pages for gtk amitaru Linux - Newbie 4 08-18-2008 12:41 AM
type text disappears when change pages. Brian1 LQ Suggestions & Feedback 5 06-22-2006 06:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration