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 6851579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:15:56+00:00 2026-05-27T01:15:56+00:00

I have a button that is displayed with an image. I would like to

  • 0

I have a button that is displayed with an image.

I would like to show some text when the mouse is hovering on top of it (like any desktop icon would do, or even images on HTML pages).

I am not sure if there is any facility to do that, I could not find any by looking at the GtkButton class.

Does anyone please know how I can set some text labels when the mouse is hovering on top of a button please?

Thank you very much!

  • 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-27T01:15:56+00:00Added an answer on May 27, 2026 at 1:15 am

    You are probably looking for GtkTooltip. There are simple APIs as part of GtkWidget to set & get tool tip. Use gtk_widget_set_tooltip_text to add simple text as tips for the widget or gtk_widget_set_tooltip_markup for adding text with Pango markup language. Here is a sample code for your reference:

    #include <gtk/gtk.h>
    
    int main(void)
    {
        GtkWidget *window;
        GtkWidget *vbox;
        GtkWidget *button0;
        GtkWidget *button1;
    
        gtk_init(NULL, NULL);
    
        window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
        g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
    
        vbox = gtk_vbox_new(FALSE, 0);
        gtk_container_add(GTK_CONTAINER(window), vbox);
    
        button0 = gtk_button_new_with_label("Normal tip");
        gtk_widget_set_tooltip_text(button0, "Simple tip");
    
        button1 = gtk_button_new_with_label("Markup tip");
        gtk_widget_set_tooltip_markup(button1, "This is <b>bold</b> &amp; this is <i>italics</i>");
    
        gtk_box_pack_start(GTK_BOX(vbox), button0, 1, 1, 1);
        gtk_box_pack_start(GTK_BOX(vbox), button1, 1, 1, 1);
    
        gtk_widget_show_all(window);
    
        gtk_main();
    
        return 0;
    }
    

    Hope this helps!

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

Sidebar

Related Questions

I have a button that I would like to disable when the form submits
I have a button that I'm creating in a UIViewController like so: TOLoginButton* button
I have created a custom TaskButton control that takes an image and text. The
I have this layout and I would like the image to span across 2
I'm trying generate a images/chart in my controller and have that image displayed in
I have a button that opens a dialog when clicked. The dialog displays a
I have a custom control that displays a tryAgain button when the control is
I have a series of buttons that display filenames. If I set the Text
We have a button that saves asynchronously using AjaxToolKit/C#/.NET. I'm getting this in my
I have a Button that is looking at 2 comboboxes to make sure they

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.