From a76b6aef050f58ffaf05a63c4c4a4c3b7a715d3e Mon Sep 17 00:00:00 2001 From: Jerome Blanchi Date: Mon, 4 May 2026 10:40:35 +0200 Subject: [PATCH] Reloaded Fix warnings #2 * gtkcurve: comment unused stuff about cursor type * gtkcurve: comment unused gtk_gadget_class_intern_init () * vj-api: comment unused var + cast for quiet free --- veejay-current/veejay-client/src/gtk3curve.c | 20 ++++++++++---------- veejay-current/veejay-client/src/vj-api.c | 9 +++++++-- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/veejay-current/veejay-client/src/gtk3curve.c b/veejay-current/veejay-client/src/gtk3curve.c index 40c61277..e34a1009 100644 --- a/veejay-current/veejay-client/src/gtk3curve.c +++ b/veejay-current/veejay-client/src/gtk3curve.c @@ -191,12 +191,12 @@ gtk3_curve_get_instance_private (Gtk3Curve *self) return (G_STRUCT_MEMBER_P (self, Gtk3Curve_private_offset)); } -static void gtk_gadget_class_intern_init (gpointer klass) -{ - g_type_class_adjust_private_offset (klass, &Gtk3Curve_private_offset); - gtk3_curve_parent_class = g_type_class_peek_parent (klass); - gtk3_curve_class_init ((Gtk3CurveClass*) klass); -} +//~ static void gtk_gadget_class_intern_init (gpointer klass) +//~ { + //~ g_type_class_adjust_private_offset (klass, &Gtk3Curve_private_offset); + //~ gtk3_curve_parent_class = g_type_class_peek_parent (klass); + //~ gtk3_curve_class_init ((Gtk3CurveClass*) klass); +//~ } GType gtk3_curve_get_type (void) @@ -973,7 +973,7 @@ gtk3_curve_button_press (GtkWidget *widget, GdkEventButton *event) { Gtk3CurvePrivate *priv = GTK3_CURVE (widget)->priv; - GdkCursorType new_type = priv->cursor_type; + //~ GdkCursorType new_type = priv->cursor_type; GtkAllocation allocation; gint cx, x, y, width, height, i; gint closest_point = 0; @@ -984,7 +984,7 @@ gtk3_curve_button_press (GtkWidget *widget, DEBUG_INFO("button press [S]\n"); gtk_grab_add (widget); - new_type = GDK_TCROSS; + //~ new_type = GDK_TCROSS; gtk_widget_get_allocation (widget, &allocation); @@ -1072,7 +1072,7 @@ gtk3_curve_button_release (GtkWidget *widget, { Gtk3CurvePrivate *priv = GTK3_CURVE (widget)->priv; GtkAllocation allocation; - GdkCursorType new_type = priv->cursor_type; + //~ GdkCursorType new_type = priv->cursor_type; gint src, dst, width, height; gfloat min_x; //~ gint closest_point = 0; # not used @@ -1153,7 +1153,7 @@ gtk3_curve_button_release (GtkWidget *widget, } } - new_type = GDK_FLEUR; + //~ new_type = GDK_FLEUR; priv->grab_point = -1; DEBUG_INFO("button release [E]\n"); diff --git a/veejay-current/veejay-client/src/vj-api.c b/veejay-current/veejay-client/src/vj-api.c index 33e56582..6d8bfa0a 100755 --- a/veejay-current/veejay-client/src/vj-api.c +++ b/veejay-current/veejay-client/src/vj-api.c @@ -6239,6 +6239,9 @@ static void setup_vimslist(void) VIMS_ID, GTK_SORT_ASCENDING); } + +//~ WIP TODO interactive search on both VIMS id and description +//~ if search lookup is string search for description if is number search for ID gboolean on_bundle_interactive_search(GtkTreeView *treeview, gpointer user_data) { @@ -6279,6 +6282,8 @@ static void setup_bundles(void) gtk_tree_selection_set_select_function(selection, view_bundle_selection_func, NULL, NULL); gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE); +//~ WIP TODO interactive search on both VIMS id and description +//~ if search lookup is string search for description if is number search for ID gboolean kjdhfkj = gtk_tree_view_get_enable_search( GTK_TREE_VIEW(tree) ); guint sigjdf = g_signal_connect(tree, "start_interactive_search", @@ -6952,7 +6957,7 @@ cleanup: static int should_enable_drop_frame_timecode(float fps) { - float corrected = fps * 1001.0f / 1000.0f; + //~ float corrected = fps * 1001.0f / 1000.0f; return ( fabs(fps - 29.97f) < 0.01f || @@ -8582,7 +8587,7 @@ void vj_gui_activate_stylesheet(vj_gui_t *gui) } gtk_css_provider_load_from_data(override, runtime_css, -1, NULL); - g_free(runtime_css); + g_free((gchar *)runtime_css); #endif g_object_unref(base);