nautilus-cd-burner learning attempt



I am trying to add a clear button to the burn-bar in
nautilus-cd-burner. I have added the button and it clears the burn://
area, but I need to manually refresh to view the changes. I can't
figure out how to force a refresh from nautilus-burn-bar.c.

I think that I need to call
nautilus_menu_provider_emit_items_updated_signal
(NAUTILUS_MENU_PROVIDER (burn));

But I cannot get NautilusBurn *burn in nautilus-burn-bar.c.

My current code is attached to this feature request:
http://bugzilla.gnome.org/show_bug.cgi?id=520414

My other problem is that I currently define BURN_URI inside of my
callback, which I think is very ugly. But I cannot figure out how to
get the define that is specified inside of burn-extension.c.

I am a relatively new c/gobject programmer. I started with visual
basic and was then introduced to linux. I have worked primarily with
ruby since, but if I am going to really contribute I need to learn
c/gtk+. This is why I picked this fairly simple project. I have spent
two days so far on it and am hoping that there is a simple fix that I
am missing.

I would also appreciate any advice as to coding style and c errors.

Thanks!


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