[gtranslator/gtk4: 6/52] commenting some not used functions in utils.c/h and commenting drag and drop functionality for now
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator/gtk4: 6/52] commenting some not used functions in utils.c/h and commenting drag and drop functionality for now
- Date: Mon, 5 Sep 2022 15:17:49 +0000 (UTC)
commit 90981b3581724025c58f3a1072df3454273e23d1
Author: afshan ahmed khan <afshanahmeda2k gmail com>
Date: Sun May 22 12:46:08 2022 +0530
commenting some not used functions in utils.c/h and commenting drag and drop functionality for now
src/gtr-utils.c | 18 +++++++++---------
src/gtr-utils.h | 6 +++---
src/gtr-window.c | 12 ++++++------
3 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/src/gtr-utils.c b/src/gtr-utils.c
index c89d1514..7e6b8ae1 100644
--- a/src/gtr-utils.c
+++ b/src/gtr-utils.c
@@ -93,7 +93,7 @@ gtr_gtk_button_new_with_icon_name (const gchar * label,
*
* It returns the position to popup a menu in a specific widget.
*/
-void
+/*void
gtr_utils_menu_position_under_widget (GtkMenu * menu,
gint * x,
gint * y,
@@ -120,7 +120,7 @@ gtr_utils_menu_position_under_widget (GtkMenu * menu,
*y += allocation.y + allocation.height;
*push_in = TRUE;
-}
+}*/
/**
* gtr_utils_menu_position_under_tree_view:
@@ -132,7 +132,7 @@ gtr_utils_menu_position_under_widget (GtkMenu * menu,
*
* It returns the position to popup a menu in a TreeView.
*/
-void
+/*void
gtr_utils_menu_position_under_tree_view (GtkMenu * menu,
gint * x,
gint * y,
@@ -158,7 +158,7 @@ gtr_utils_menu_position_under_tree_view (GtkMenu * menu,
gdk_window_get_origin (gtk_widget_get_window (GTK_WIDGET (tree)), x, y);
path = gtk_tree_model_get_path (model, &iter);
- gtk_tree_view_get_cell_area (tree, path, gtk_tree_view_get_column (tree, 0), /* FIXME 0 for RTL ?
*/
+ gtk_tree_view_get_cell_area (tree, path, gtk_tree_view_get_column (tree, 0), // FIXME 0 for RTL ?
//
&rect);
gtk_tree_path_free (path);
@@ -175,10 +175,10 @@ gtr_utils_menu_position_under_tree_view (GtkMenu * menu,
}
else
{
- /* no selection -> regular "under widget" positioning */
+ // no selection -> regular "under widget" positioning //
gtr_utils_menu_position_under_widget (menu, x, y, push_in, tree);
}
-}
+}*/
static gboolean
@@ -252,7 +252,7 @@ gtr_utils_is_valid_uri (const gchar * uri)
* were no valid uris. g_strfreev should be used when the
* string array is no longer used
*/
-GSList *
+/*GSList *
gtr_utils_drop_get_locations (GtkSelectionData * selection_data)
{
gchar **uris;
@@ -264,7 +264,7 @@ gtr_utils_drop_get_locations (GtkSelectionData * selection_data)
for (i = 0; uris[i] != NULL; i++)
{
GFile *file;
- /* Silently ignore malformed URI/filename */
+ // Silently ignore malformed URI/filename //
if (gtr_utils_is_valid_uri (uris[i]))
{
file = g_file_new_for_uri (uris[i]);
@@ -273,7 +273,7 @@ gtr_utils_drop_get_locations (GtkSelectionData * selection_data)
}
return locations;
-}
+}*/
gchar *
gtr_utils_escape_search_text (const gchar * text)
diff --git a/src/gtr-utils.h b/src/gtr-utils.h
index 10aea191..de7c5e6f 100644
--- a/src/gtr-utils.h
+++ b/src/gtr-utils.h
@@ -34,7 +34,7 @@ xmlDocPtr gtr_xml_open_file (const gchar * filename);
GtkWidget *gtr_gtk_button_new_with_icon_name (const gchar * label,
const gchar * icon_name);
-void gtr_utils_menu_position_under_widget (GtkMenu * menu,
+/*void gtr_utils_menu_position_under_widget (GtkMenu * menu,
gint * x,
gint * y,
gboolean * push_in,
@@ -44,9 +44,9 @@ void gtr_utils_menu_position_under_tree_view (GtkMenu * menu,
gint * x,
gint * y,
gboolean * push_in,
- gpointer user_data);
+ gpointer user_data);*/
- GSList *gtr_utils_drop_get_locations (GtkSelectionData * selection_data);
+ //GSList *gtr_utils_drop_get_locations (GtkSelectionData * selection_data);
gchar *gtr_utils_escape_search_text (const gchar * text);
diff --git a/src/gtr-window.c b/src/gtr-window.c
index 59c79baf..70373a5e 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -159,7 +159,7 @@ get_drop_window (GtkWidget * widget)
}
/* Handle drops on the GtrWindow */
-static void
+/*static void
drag_data_received_cb (GtkWidget * widget,
GdkDragContext * context,
gint x,
@@ -182,7 +182,7 @@ drag_data_received_cb (GtkWidget * widget,
g_slist_free_full (locations, g_object_unref);
}
-}
+}*/
void
set_window_title (GtrWindow * window, gboolean with_path)
@@ -353,12 +353,12 @@ gtr_window_init (GtrWindow *window)
/* Drag and drop support, set targets to NULL because we add the
default uri_targets below */
- gtk_drag_dest_set (GTK_WIDGET (window),
+ /*gtk_drag_dest_set (GTK_WIDGET (window),
GTK_DEST_DEFAULT_MOTION |
GTK_DEST_DEFAULT_HIGHLIGHT |
GTK_DEST_DEFAULT_DROP, NULL, 0, GDK_ACTION_COPY);
- /* Add uri targets */
+ // Add uri targets //
tl = gtk_drag_dest_get_target_list (GTK_WIDGET (window));
if (tl == NULL)
@@ -370,10 +370,10 @@ gtr_window_init (GtrWindow *window)
gtk_target_list_add_uri_targets (tl, TARGET_URI_LIST);
- /* Connect signals */
+ // Connect signals //
g_signal_connect (window,
"drag_data_received",
- G_CALLBACK (drag_data_received_cb), NULL);
+ G_CALLBACK (drag_data_received_cb), NULL);*/
/**
* Here we define different widgets that provides to append to the main
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]