[empathy: 10/12] PresetDialog: make status icon in entry non-activatable



commit 712f9da4f80e0426ca449431ffbe6cd3373adf12
Author: Will Thompson <will thompson collabora co uk>
Date:   Fri Jun 24 11:44:35 2011 +0100

    PresetDialog: make status icon in entry non-activatable
    
    It's not meaningfully activatable; this has the effect of making it not
    glow on mouse-over, and preventing the cursor from changing from a caret
    back to a pointer.

 libempathy-gtk/empathy-status-preset-dialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-status-preset-dialog.c b/libempathy-gtk/empathy-status-preset-dialog.c
index 30c5c6b..a106a88 100644
--- a/libempathy-gtk/empathy-status-preset-dialog.c
+++ b/libempathy-gtk/empathy-status-preset-dialog.c
@@ -564,6 +564,9 @@ empathy_status_preset_dialog_init (EmpathyStatusPresetDialog *self)
 	gtk_tree_selection_set_mode (selection, GTK_SELECTION_MULTIPLE);
 
 	entry = gtk_bin_get_child (GTK_BIN (priv->add_combobox));
+	gtk_entry_set_icon_activatable (GTK_ENTRY (entry),
+			GTK_ENTRY_ICON_PRIMARY,
+			FALSE);
 	g_signal_connect (entry, "activate",
 			G_CALLBACK (status_preset_dialog_add_preset), self);
 	g_signal_connect (entry, "button-press-event",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]