[gtk/gtk-demo-fixes: 3/9] gtk-demo: Cosmetic fixes to the dnd demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-demo-fixes: 3/9] gtk-demo: Cosmetic fixes to the dnd demo
- Date: Tue, 24 Dec 2019 08:41:10 +0000 (UTC)
commit 33716d1e50f25a6a054c9a15aadcc20f19359982
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 23 22:14:52 2019 -0500
gtk-demo: Cosmetic fixes to the dnd demo
demos/gtk-demo/dnd.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/demos/gtk-demo/dnd.c b/demos/gtk-demo/dnd.c
index b211bcede1..4ed6c9ce76 100644
--- a/demos/gtk-demo/dnd.c
+++ b/demos/gtk-demo/dnd.c
@@ -1,6 +1,8 @@
/* Drag-and-Drop
*
* I can't believe its not glade!
+ *
+ * Try right-clicking in the window.
*/
#include <glib/gi18n.h>
@@ -219,6 +221,7 @@ edit_cb (GtkWidget *child)
g_object_set_data (G_OBJECT (entry), "label", child);
gtk_editable_set_text (GTK_EDITABLE (entry), gtk_label_get_text (GTK_LABEL (child)));
+ gtk_editable_set_width_chars (GTK_EDITABLE (entry), 12);
g_signal_connect (entry, "activate", G_CALLBACK (edit_label_done), NULL);
gtk_fixed_put (GTK_FIXED (fixed), entry, x, y);
gtk_widget_grab_focus (entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]