#37 using padding (all) dialog box - program crash

open
Iago Rubio
5
2007-01-05
2007-01-05
ville
No

This bug is forwarded from Ubuntu bug tracking system:
https://bugs.launchpad.net/ubuntu/+source/cssed/+bug/77934

Original Description:

"Attempting to access padding dialog.

Steps;

<enter> ";" (popup appears)
<choice> "padding" (after typing "pa")
<enter> ":" (popup appears)
<choice> "padding" (padding dialog appears)

Then selected padding-right and padding left, changed values to "20"px, selected "OK" button then program crashed."

backtrace:
#0 cssdialog_padding_property_get_string (window=0x81b8428, data=0x82aa750)
at cssdialogs-functions.c:1994
#1 0x08090997 in on_padding_property_dialog_okbutton_clicked (
button=0x82aa750, user_data=0x83f7320) at cssdialogs-callbacks.c:1261
#2 0xb7961b29 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#3 0xb795479b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#4 0xb7964b93 in g_signal_chain_from_overridden ()
from /usr/lib/libgobject-2.0.so.0
#5 0xb79660b7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#6 0xb7966279 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#7 0xb7c76093 in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#8 0xb7c77cde in gtk_button_set_alignment () from /usr/lib/libgtk-x11-2.0.so.0
#9 0xb7961b29 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
#10 0xb7952fb9 in g_value_set_boxed () from /usr/lib/libgobject-2.0.so.0
#11 0xb795479b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#12 0xb796502a in g_signal_chain_from_overridden ()
from /usr/lib/libgobject-2.0.so.0
#13 0xb79660b7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#14 0xb7966279 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#15 0xb7c76123 in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#16 0xb7c76181 in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0

Discussion

  • ville
    ville
    2007-01-05

    Logged In: YES
    user_id=1632144
    Originator: YES

    This little patch seems to fix this problem. It looks like a little copy-paste error, but I'm not
    sure.

    --- cssed_orig/cssed-0.4.0/src/cssdialogs-functions.c 2005-11-01 13:46:34.000000000 +0200
    +++ cssed/cssed-0.4.0/src/cssdialogs-functions.c 2007-01-05 20:30:45.000000000 +0200
    @@ -1991,8 +1991,8 @@
    combo_entry_left = lookup_widget(parent,"combo_entry_left");
    strleft_unit = gtk_editable_get_chars(GTK_EDITABLE(combo_entry_left),0,-1);

    - if( strcmp(strbottom_unit, "em") == 0 ||
    - strcmp(strbottom_unit, "in") == 0 )
    + if( strcmp(strleft_unit, "em") == 0 ||
    + strcmp(strleft_unit, "in") == 0 )
    {
    fleft = (gfloat) gtk_spin_button_get_value_as_float(GTK_SPIN_BUTTON(spinbutton_left));
    strleft = g_strdup_printf("%0.2f%s ", fleft, strleft_unit);