[balsa/wip/gtk4: 101/351] Do not try to implement a shift-f10 popup menu



commit ff03cf7004183612fe093fa690c9abab2451b248
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Dec 18 08:41:41 2017 -0500

    Do not try to implement a shift-f10 popup menu
    
    balsa-mime-widget-image: do not try to implement a shift-f10 popup menu.

 src/balsa-mime-widget-image.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/balsa-mime-widget-image.c b/src/balsa-mime-widget-image.c
index 5fd4d5b..b0d6e5d 100644
--- a/src/balsa-mime-widget-image.c
+++ b/src/balsa-mime-widget-image.c
@@ -71,8 +71,6 @@ static void balsa_mime_widget_image_gesture_pressed_cb(GtkGestureMultiPress *mul
                                                        gdouble               x,
                                                        gdouble               y,
                                                        gpointer              user_data);
-static gboolean balsa_mime_widget_image_popup_menu_cb(GtkWidget * widget,
-                                                      gpointer    user_data);
 static gboolean img_check_size(GtkImage ** widget_p);
 
 BalsaMimeWidget *
@@ -110,12 +108,6 @@ balsa_mime_widget_new_image(BalsaMessage * bm,
     g_signal_connect(gesture, "pressed",
                      G_CALLBACK(balsa_mime_widget_image_gesture_pressed_cb), data);
 
-#if 0
-    gtk_widget_add_events(GTK_WIDGET(image), GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK);
-#endif
-    g_signal_connect(image, "popup-menu",
-                     G_CALLBACK(balsa_mime_widget_image_popup_menu_cb), data);
-
     mw = (BalsaMimeWidget *) g_object_new(BALSA_TYPE_MIME_WIDGET_IMAGE, NULL);
     mw->widget = image;
 
@@ -164,19 +156,6 @@ balsa_mime_widget_image_gesture_pressed_cb(GtkGestureMultiPress *multi_press,
 }
 
 static gboolean
-balsa_mime_widget_image_popup_menu_cb(GtkWidget * widget,
-                                      gpointer    user_data)
-{
-    GtkMenu *menu = user_data;
-
-    gtk_menu_popup_at_widget(GTK_MENU(menu), widget,
-                             GDK_GRAVITY_CENTER, GDK_GRAVITY_CENTER,
-                             NULL);
-
-    return TRUE;
-}
-
-static gboolean
 img_check_size(GtkImage ** widget_p)
 {
     GtkImage *image;


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