denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] Plagued by warnings


From: Richard Shann
Subject: Re: [Denemo-devel] Plagued by warnings
Date: Mon, 23 Dec 2013 19:20:02 +0000

On Mon, 2013-12-23 at 19:37 +0100, Éloi Rivard wrote:
> If neither you nor Jeremiah know what it is for, maybe you can even
> delete it :)

Yes, I have just dropped it and I am looking for any consequences. I
think I have an idea why setting the "hidden" attribute is broken. The
toggle returns the row number which I think used to be the command id,
but I think you may have changed this. Can you suggest what must be done
in toggle_hidden_on_action() to find the command id for the given row?
At present it is this:

static void
toggle_hidden_on_action (G_GNUC_UNUSED GtkCellRendererToggle *
cell_renderer, gchar * path)
{
  command_row* row = NULL;
  gint command_id = atoi (path);g_print("toggle with %s as path", path);
  GtkAction *action = (GtkAction *) lookup_action_from_idx (Denemo.map,
command_id);  

Which assumes the id is the row number (which is passed as a string
called path).

Richard


> 
> There is a lot of sleeping commented code waiting for someone telling
> if it is useful or not. It makes the code a bit difficult to read!
> 
> 
> 
> 2013/12/23 Richard Shann <address@hidden>
>         On Mon, 2013-12-23 at 17:19 +0000, Richard Shann wrote:
>         > I am getting plagued by these warnings when I open the
>         Command Center
>         > and search:
>         >
>         > GLib-GObject - WARNING : unable to set property `active' of
>         type
>         > `gboolean' from value of type `gpointer'
>         >
>         > Does anyone know the origin of these? I have tried setting
>         (in gdb)
>         >
>         >  set environment G_WARNING=fatal-warnings
>         >
>         > but this doesn't fire off.
>         >
>         > Anyone have any ideas here?
>         >
>         
>         
>         Well to answer my own question, I called
>         
>         call g_log_set_fatal_mask ("GLib-GObject", 1<<4)
>         
>         in gdb (where 1<<4 is G_WARNING) and it did then abort on the
>         error.
>         
>         The "where" command (see below) indicates
>         gtk_cell_area_apply_attributes
>         () is the crucial call.
>         It seems this is due to the call
>         
>         gtk_tree_view_column_add_attribute (col, renderer, "active",
>         COL_HIDDEN);
>         
>         as the type is boolean. I will comment out this line if no-one
>         knows
>         what it is for.
>         
>         Richard
>         
>         Program received signal SIGABRT, Aborted.
>         0x00007ffff28c6475 in raise ()
>         from /lib/x86_64-linux-gnu/libc.so.6
>         (gdb) where
>         #0  0x00007ffff28c6475 in raise ()
>         from /lib/x86_64-linux-gnu/libc.so.6
>         #1  0x00007ffff28c96f0 in abort ()
>         from /lib/x86_64-linux-gnu/libc.so.6
>         #2  0x00000000004480c5 in main_log_handler (message=<optimized
>         out>,
>         log_level=<optimized out>, log_domain=<optimized out>,
>         user_data=<optimized out>) at ../../denemo/src/main.c:426
>         #3  main_log_handler (log_domain=<optimized out>,
>         log_level=<optimized
>         out>, message=<optimized out>, user_data=<optimized out>)
>         at ../../denemo/src/main.c:359
>         #4  0x00007ffff452d473 in g_logv ()
>         from /lib/x86_64-linux-gnu/libglib-2.0.so.0
>         #5  0x00007ffff452d622 in g_log ()
>         from /lib/x86_64-linux-gnu/libglib-2.0.so.0
>         #6  0x00007ffff47ed6e4 in g_object_set_property ()
>         from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>         #7  0x00007ffff5e60c1b in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #8  0x00007ffff4516d00 in g_hash_table_foreach ()
>         from /lib/x86_64-linux-gnu/libglib-2.0.so.0
>         #9  0x00007ffff5e60af6 in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #10 0x00007ffff5e6653f in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #11 0x00007ffff5f1f0b8 in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #12 0x00007ffff47e59a7 in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>         #13 0x00007ffff47fe006 in g_signal_emit_valist ()
>         from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>         #14 0x00007ffff47fe852 in g_signal_emit ()
>         from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>         #15 0x00007ffff5e62954 in gtk_cell_area_apply_attributes ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #16 0x00007ffff601cd41 in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #17 0x00007ffff5f1847f in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #18 0x00007ffff603dc9e in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #19 0x00007ffff47e59a7 in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>         #20 0x00007ffff47fe006 in g_signal_emit_valist ()
>         from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>         #21 0x00007ffff47fe852 in g_signal_emit ()
>         from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
>         #22 0x00007ffff604eb4e in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #23 0x00007ffff604ed05 in gtk_widget_send_expose ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #24 0x00007ffff5f182a2 in gtk_main_do_event ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #25 0x00007ffff5b4fa60 in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
>         #26 0x00007ffff5b4fa0a in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
>         #27 0x00007ffff5b4fa0a in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
>         #28 0x00007ffff5b4fa0a in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
>         #29 0x00007ffff5b4eeb6 in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
>         #30 0x00007ffff5b4f338 in gdk_window_process_all_updates ()
>         from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
>         #31 0x00007ffff5b4f3a9 in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
>         #32 0x00007ffff5b32980 in ?? ()
>         from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
>         #33 0x00007ffff4526355 in g_main_context_dispatch ()
>         from /lib/x86_64-linux-gnu/libglib-2.0.so.0
>         #34 0x00007ffff4526688 in ?? ()
>         from /lib/x86_64-linux-gnu/libglib-2.0.so.0
>         #35 0x00007ffff4526a82 in g_main_loop_run ()
>         from /lib/x86_64-linux-gnu/libglib-2.0.so.0
>         #36 0x00007ffff5f173b5 in gtk_main ()
>         from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
>         #37 0x000000000045988c in inner_main (files=<optimized out>)
>         at ../../denemo/src/view.c:773
>         #38 0x00007ffff7ab6a1a in ?? ()
>         from /usr/lib/libguile-2.0.so.22
>         #39 0x00007ffff7b4691f in ?? ()
>         from /usr/lib/libguile-2.0.so.22
>         #40 0x00007ffff7abfe83 in scm_call_4 ()
>         from /usr/lib/libguile-2.0.so.22
>         #41 0x00007ffff7ab7203 in ?? ()
>         from /usr/lib/libguile-2.0.so.22
>         #42 0x00007ffff7ab72b5 in scm_c_with_continuation_barrier ()
>         from /usr/lib/libguile-2.0.so.22
>         #43 0x00007ffff7b2f875 in ?? ()
>         from /usr/lib/libguile-2.0.so.22
>         #44 0x00007ffff7818cc8 in GC_call_with_stack_base ()
>         from /usr/lib/libgc.so.1
>         #45 0x00007ffff7b2fa08 in scm_with_guile ()
>         from /usr/lib/libguile-2.0.so.22
>         #46 0x00000000004167f1 in main (argc=1, argv=0x7fffffffe428)
>         at ../../denemo/src/main.c:465
>         
>         
>         >
>         > Richard
>         >
>         >
>         >
>         > _______________________________________________
>         > Denemo-devel mailing list
>         > address@hidden
>         > https://lists.gnu.org/mailman/listinfo/denemo-devel
>         
>         
>         
>         _______________________________________________
>         Denemo-devel mailing list
>         address@hidden
>         https://lists.gnu.org/mailman/listinfo/denemo-devel
>         
> 
> 
> 
> -- 
> Éloi Rivard - address@hidden
>         
> « On perd plus à être indécis qu'à se tromper. »
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]