Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 443475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:10:29+00:00 2026-05-12T21:10:29+00:00

About Gtk Dialog box Behavior… I am using GtkBuilder +Glade to display a top

  • 0

About Gtk Dialog box Behavior…

I am using GtkBuilder +Glade to display a top level window and dialogs in it…

builder = gtk_builder_new();
gtk_builder_add_from_file( builder, "test.glade", NULL );
windowPtr = GTK_WIDGET( gtk_builder_get_object( m_builder, "window_main"));

on clicking on button i am opening one dialog box which is in other glade file….
after closing the dialog box control gets return to main window….

but when i click again on button to open dialog box.. it opens the dialog box but dialog box does not show any child widgets in it (it is just a empty window).. why this is happening?

I am not handling close event on dialog!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:10:29+00:00Added an answer on May 12, 2026 at 9:10 pm

    In glade, set the callback for “delete-event” of your GtkDialog to gtk_widget_hide_on_delete. This will then hide your dialog instead of destroying it.

    Also, you will need to add this line to your program:
    gtk_builder_signals_connect( m_builder, NULL )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've programmed a software gui using glade and gtk. The main window has an
I'm working on a PyGTK/glade application that currently has 16 windows/dialogs and is about
About 10 years ago, I was using a computer language called INFO on an
About five years ago I started using Generic lookup Tables for applications I was
About to create a form using Zend Form, all the form elements should have
I have set about learning the gtk. And when I was browsing the reference
I guess I'm not understanding something about C++: I have this code: #include window.h
Do someone know how to get glsl shaders work in gtk-opengl window? With glut
I am using emacs 23.2 with the GTK toolkit. I built emacs from source
I am working on a kiosk gui, written in ruby/gtk and using ubuntu. I'd

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.