chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6cd155a
)
tooltips for properties buttons
author
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 1 Oct 2007 15:02:50 +0000
(16:02 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 1 Oct 2007 15:02:50 +0000
(16:02 +0100)
disobedience/properties.c
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/properties.c
b/disobedience/properties.c
index ddcaa4d0133c4dec4be206dc059f74fe3858c6ad..ce1cb53e48643ac11c8a53d10ca50a40e565df23 100644
(file)
--- a/
disobedience/properties.c
+++ b/
disobedience/properties.c
@@
-130,10
+130,23
@@
static const struct pref {
static const struct button {
const gchar *stock;
void (*clicked)(GtkButton *button, gpointer userdata);
static const struct button {
const gchar *stock;
void (*clicked)(GtkButton *button, gpointer userdata);
+ const char *tip;
} buttons[] = {
} buttons[] = {
- { GTK_STOCK_OK, properties_ok },
- { GTK_STOCK_APPLY, properties_apply },
- { GTK_STOCK_CANCEL, properties_cancel },
+ {
+ GTK_STOCK_OK,
+ properties_ok,
+ "Apply all changes and close window"
+ },
+ {
+ GTK_STOCK_APPLY,
+ properties_apply,
+ "Apply all changes and keep window open"
+ },
+ {
+ GTK_STOCK_CANCEL,
+ properties_cancel,
+ "Discard all changes and close window"
+ },
};
#define NBUTTONS (int)(sizeof buttons / sizeof *buttons)
};
#define NBUTTONS (int)(sizeof buttons / sizeof *buttons)
@@
-256,6
+269,7
@@
void properties(int ntracks, char **tracks) {
g_signal_connect(G_OBJECT(button), "clicked",
G_CALLBACK(buttons[n].clicked), 0);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 1);
g_signal_connect(G_OBJECT(button), "clicked",
G_CALLBACK(buttons[n].clicked), 0);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 1);
+ gtk_tooltips_set_tip(tips, button, buttons[n].tip, "");
}
/* Put it all together */
vbox = gtk_vbox_new(FALSE, 1);
}
/* Put it all together */
vbox = gtk_vbox_new(FALSE, 1);