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

  • SEARCH
  • Home
  • 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 775333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:16:20+00:00 2026-05-14T19:16:20+00:00

Pretty straight forward question, I have a GtkEntry widget that I want to set

  • 0

Pretty straight forward question, I have a GtkEntry widget that I want to set to be editable. I know the function I should use is:

gtk_editable_set_editable

But I don’t know how to make it take a GtkEntry widget as an argument

Here is the code I’m using:

GtkWidget *TextEntry;
TextEntry = gtk_entry_new();

gtk_entry_set_visibility(GTK_ENTRY(TextEntry), TRUE);
gtk_entry_set_editable(GTK_ENTRY(TextEntry), TRUE);
gtk_entry_set_overwrite_mode(GTK_ENTRY(TextEntry), TRUE);
gtk_widget_set_can_focus(GTK_WIDGET(TextEntry), TRUE);
gtk_widget_grab_focus(TextEntry);

panel_applet_request_focus(applet, 10);
gtk_container_add (GTK_CONTAINER (applet), TextEntry);

gtk_widget_show_all (GTK_WIDGET (applet));

So far as getting keyboard focus, I think I need the panel_applet_request_focus () function. It requires that i pass it the applet in question and the timestamp of the event triggering the window focus

I’m not sure what to put in for the timestamp. I compiled the code as above and I still can’t get keyboard focus when I click the applet.

  • 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-14T19:16:21+00:00Added an answer on May 14, 2026 at 7:16 pm

    Do the following:

    GtkWidget* entry = gtk_entry_new();
    gtk_entry_set_editable(GTK_ENTRY(entry), TRUE);
    

    Welcome to the world of GObject 🙂

    Note that if you were using gtk_editable, you need to do:

    gtk_editable_set_editable(GTK_EDITABLE(entry), TRUE);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pretty straight forward question: I have page--front.tpl and page.tpl template pages in use in
So! My question is pretty straight forward, I have a website (Build in ASP.NET
It's a pretty straight forward question. I have my main window in a WPF
Okay, pretty straight forward JQuery question that I am struggling to find an answer
Hey, thanks in advance for the help. I have another pretty straight forward question.
Well, first of all sorry about this question it must be pretty straight forward
I have a pretty straight forward task - Given the URL of a video,
This seems like it should be pretty straight forward, but I'm apparently confused. I
I have a side project I do = in Java. It's a pretty straight-forward
This is a pretty straight forward question but I can't seem to figure out

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.