Skip to content

Instantly share code, notes, and snippets.

@steinsag
Created May 17, 2013 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steinsag/5602064 to your computer and use it in GitHub Desktop.
Save steinsag/5602064 to your computer and use it in GitHub Desktop.
Just a small snippet of Darktable's code to create a button for the preferences dialog.
g->description = GTK_ENTRY(gtk_entry_new());
gtk_box_pack_start(box, GTK_WIDGET(g->description), FALSE, FALSE, 0);
g_object_set(G_OBJECT(g->description), "tooltip-text", _("description or further information"), (char *)NULL);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment