[balsa] mime-widget-text: Use bmwt_html_ prefix



commit e09f7fa602aae0325ce26b968172b5899d296540
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Jun 5 12:15:26 2020 -0400

    mime-widget-text: Use bmwt_html_ prefix
    
    for all HTML-related functions.
    
    * src/balsa-mime-widget-text.c (bmwt_html_zoom_in),
      (bmwt_html_zoom_out), (bmwt_html_zoom_reset),
      (bmwt_html_select_all_cb), (bmwt_html_populate_popup_menu),
      (bmwt_html_popup_context_menu), (bmwt_html_gesture_pressed_cb),
      (bmwt_html_populate_popup_cb), (bm_widget_new_html):

 ChangeLog                    | 12 +++++++++++
 src/balsa-mime-widget-text.c | 48 ++++++++++++++++++++++----------------------
 2 files changed, 36 insertions(+), 24 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f2db91999..f05c11cda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2020-06-05  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       mime-widget-text: Use bmwt_html_ prefix
+
+       for all HTML-related functions.
+
+       * src/balsa-mime-widget-text.c (bmwt_html_zoom_in),
+       (bmwt_html_zoom_out), (bmwt_html_zoom_reset),
+       (bmwt_html_select_all_cb), (bmwt_html_populate_popup_menu),
+       (bmwt_html_popup_context_menu), (bmwt_html_gesture_pressed_cb),
+       (bmwt_html_populate_popup_cb), (bm_widget_new_html):
+
 2020-06-04  Peter Bloomfield  <pbloomfield bellsouth net>
 
        main-window: Connect to "notify::focus" signal instead of the
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 2568e42af..19a0be73f 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -1078,50 +1078,50 @@ bm_widget_on_url(const gchar *url)
 
 #ifdef HAVE_HTML_WIDGET
 static void
-bm_zoom_in(BalsaMessage * bm)
+bmwt_html_zoom_in(BalsaMessage * bm)
 {
     balsa_message_zoom(bm, 1);
 }
 
 static void
-bm_zoom_out(BalsaMessage * bm)
+bmwt_html_zoom_out(BalsaMessage * bm)
 {
     balsa_message_zoom(bm, -1);
 }
 
 static void
-bm_zoom_reset(BalsaMessage * bm)
+bmwt_html_zoom_reset(BalsaMessage * bm)
 {
     balsa_message_zoom(bm, 0);
 }
 
 static void
-bm_select_all_cb(GtkWidget * html)
+bmwt_html_select_all_cb(GtkWidget * html)
 {
     libbalsa_html_select_all(html);
 }
 
 static void
-bmwt_populate_popup_menu(BalsaMessage * bm,
-                         GtkWidget    * html,
-                         GtkMenu      * menu)
+bmwt_html_populate_popup_menu(BalsaMessage * bm,
+                              GtkWidget    * html,
+                              GtkMenu      * menu)
 {
     GtkWidget *menuitem;
     gpointer mime_body = g_object_get_data(G_OBJECT(html), "mime-body");
 
     menuitem = gtk_menu_item_new_with_label(_("Zoom In"));
     g_signal_connect_swapped(menuitem, "activate",
-                             G_CALLBACK(bm_zoom_in), bm);
+                             G_CALLBACK(bmwt_html_zoom_in), bm);
     gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
 
     menuitem = gtk_menu_item_new_with_label(_("Zoom Out"));
     g_signal_connect_swapped(menuitem, "activate",
-                             G_CALLBACK(bm_zoom_out), bm);
+                             G_CALLBACK(bmwt_html_zoom_out), bm);
     gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
 
     menuitem = gtk_menu_item_new_with_label(_("Zoom 100%"));
     g_signal_connect_swapped(menuitem, "activate",
-                             G_CALLBACK(bm_zoom_reset), bm);
+                             G_CALLBACK(bmwt_html_zoom_reset), bm);
     gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
 
     menuitem = gtk_separator_menu_item_new();
@@ -1130,7 +1130,7 @@ bmwt_populate_popup_menu(BalsaMessage * bm,
     if (libbalsa_html_can_select(html)) {
         menuitem = gtk_menu_item_new_with_mnemonic(_("Select _All"));
         g_signal_connect_swapped(menuitem, "activate",
-                                 G_CALLBACK(bm_select_all_cb), html);
+                                 G_CALLBACK(bmwt_html_select_all_cb), html);
         gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
 
         menuitem = gtk_separator_menu_item_new();
@@ -1160,14 +1160,14 @@ bmwt_populate_popup_menu(BalsaMessage * bm,
 }
 
 static gboolean
-balsa_gtk_html_popup(GtkWidget * html, BalsaMessage * bm)
+bmwt_html_popup_context_menu(GtkWidget * html, BalsaMessage * bm)
 {
     GtkWidget *menu;
     const GdkEvent *event;
     GdkEvent *current_event = NULL;
 
     menu = gtk_menu_new();
-    bmwt_populate_popup_menu(bm, html, GTK_MENU(menu));
+    bmwt_html_populate_popup_menu(bm, html, GTK_MENU(menu));
 
     /* In WebKit2, the context menu signal is asynchronous, so the
      * GdkEvent is no longer current; instead it is preserved and passed
@@ -1190,11 +1190,11 @@ balsa_gtk_html_popup(GtkWidget * html, BalsaMessage * bm)
 }
 
 static void
-mwt_gesture_pressed_cb(GtkGestureMultiPress *multi_press,
-                       gint                  n_press,
-                       gdouble               x,
-                       gdouble               y,
-                       gpointer              user_data)
+bmwt_html_gesture_pressed_cb(GtkGestureMultiPress *multi_press,
+                             gint                  n_press,
+                             gdouble               x,
+                             gdouble               y,
+                             gpointer              user_data)
 {
     GtkGesture *gesture;
     const GdkEvent *event;
@@ -1207,12 +1207,12 @@ mwt_gesture_pressed_cb(GtkGestureMultiPress *multi_press,
         GtkWidget *html;
 
         html = gtk_event_controller_get_widget(GTK_EVENT_CONTROLLER(gesture));
-        balsa_gtk_html_popup(html, bm);
+        bmwt_html_popup_context_menu(html, bm);
     }
 }
 
 static void
-bmwt_populate_popup_cb(GtkWidget * widget, GtkMenu * menu, gpointer data)
+bmwt_html_populate_popup_cb(GtkWidget * widget, GtkMenu * menu, gpointer data)
 {
     BalsaMessage *bm =
         g_object_get_data(G_OBJECT(widget), "balsa-message");
@@ -1221,7 +1221,7 @@ bmwt_populate_popup_cb(GtkWidget * widget, GtkMenu * menu, gpointer data)
     /* Remove WebKitWebView's items--they're irrelevant and confusing */
     gtk_container_foreach(GTK_CONTAINER(menu),
                          (GtkCallback) gtk_widget_destroy, NULL);
-    bmwt_populate_popup_menu(bm, html, menu);
+    bmwt_html_populate_popup_menu(bm, html, menu);
 }
 
 static BalsaMimeWidget *
@@ -1247,17 +1247,17 @@ bm_widget_new_html(BalsaMessage * bm, LibBalsaMessageBody * mime_body)
     if ((popup_menu = libbalsa_html_popup_menu_widget(widget)) != NULL) {
         g_object_set_data(G_OBJECT(popup_menu), "balsa-message", bm);
         g_signal_connect(popup_menu, "populate-popup",
-                         G_CALLBACK(bmwt_populate_popup_cb), widget);
+                         G_CALLBACK(bmwt_html_populate_popup_cb), widget);
     } else {
         GtkGesture *gesture;
 
         gesture = gtk_gesture_multi_press_new(widget);
         gtk_gesture_single_set_button(GTK_GESTURE_SINGLE(gesture), 0);
         g_signal_connect(gesture, "pressed",
-                         G_CALLBACK(mwt_gesture_pressed_cb), bm);
+                         G_CALLBACK(bmwt_html_gesture_pressed_cb), bm);
 
         g_signal_connect(widget, "popup-menu",
-                         G_CALLBACK(balsa_gtk_html_popup), bm);
+                         G_CALLBACK(bmwt_html_popup_context_menu), bm);
     }
 
     return mw;


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