Commit graph

212 commits

Author SHA1 Message Date
Cosimo Cecchi
377349ba19 editable-label: don't use deprecated gtk_draw_insertion_cursor()
Replace the calls with gtk_render_insertion_cursor()
2012-04-30 10:43:29 -04:00
Cosimo Cecchi
845d3fc93c editable-label: fix selection color in backdrop state
Don't set the ACTIVE flag if we don't have focus, it just doesn't make
sense.
2012-04-24 12:22:05 -04:00
Cosimo Cecchi
2cf25e2a64 all: trivial cleanups 2012-04-24 11:48:20 -04:00
Cosimo Cecchi
ac772679b3 eel: remove more unused code 2012-04-11 12:19:00 -04:00
Cosimo Cecchi
0e5bc91c5a eel: remove unused eel_strdup_strftime()
And there was much rejoice.
2012-04-11 12:14:41 -04:00
Cosimo Cecchi
9de34580ae eel: remove unused code
All these functions are now unused and can be removed.
2012-04-11 12:14:41 -04:00
Cosimo Cecchi
4396a25f9a all: use g_str_has_prefix()
Instead of the eel helper.
2012-04-11 11:36:42 -04:00
Cosimo Cecchi
f9a02d23fb all: don't use eel_round()
Just use floor().
2012-04-11 11:36:42 -04:00
Cosimo Cecchi
13982305a2 all: don't use eel_get_system_time()
Use g_get_monotonic_time() instead.
2012-04-11 11:36:41 -04:00
Nelson Benitez Leon
3deb33d449 eel-canvas: ignore extra mouse button events
Ignore button press/release events for mouse buttons greater
than 5 so allowing forward and backward mouse buttons to work
over icons.

Part of bug 660006

Signed-off-by: Nelson Benitez Leon <nbenitezl@gmail.com>
2012-04-04 16:21:37 +02:00
Cosimo Cecchi
ba281e27b8 eel: delete unused code
We don't use EelDPoint/EelIPoint anymore; other functions here are just
unused.
2012-03-16 18:00:44 -04:00
Cosimo Cecchi
0d46b0620b all: remove eel_g_hash_table_new_free_at_exit()
Especially when references can be owned by non-resident modules, this is
just too dangerous.

https://bugzilla.gnome.org/show_bug.cgi?id=670989
2012-03-07 21:04:51 -05:00
Cosimo Cecchi
3da42acd7a build: link eel and libnautilus-private to libm 2012-02-20 18:28:58 +01:00
Carlos Garnacho
8c778211e5 eel: Queue resizes on the canvas as elements change visibility
Not queueing resizes may play oddly with the size request caches in
GTK+, resulting in gtk_widget_get_preferred_width/height returning
0 even after the canvas was populated.

https://bugzilla.gnome.org/show_bug.cgi?id=667831
2012-01-16 11:04:07 -05:00
Cosimo Cecchi
33ca9cd5b0 eel: remove unused eel_accessibility_set_name/description 2011-12-08 10:39:22 -05:00
Cosimo Cecchi
45ee835907 eel-string: don't segfault in eel_str_replace_substring for NULL strings
Just check if the strings are != NULL before calling strlen() on them.
2011-10-25 13:19:17 -04:00
Cosimo Cecchi
a816e00ef7 all: don't use deprecated GDK pointer methods
Use the new GdkDevice methods instead.
2011-10-18 11:28:08 -04:00
Cosimo Cecchi
e54ace0a55 editable-label: use GTK_STYLE_CLASS_ENTRY
Because that's what it is actually...
2011-10-17 18:56:03 -04:00
Cosimo Cecchi
b143b95f20 editable-label: use gtk_render_frame() instead of hardcoding a stroke
This allows the stroke to use rounded corners and border images, among
other things.
2011-10-17 18:46:35 -04:00
Cosimo Cecchi
f9383acb37 editable-label: don't hardcode black for the insertion cursor
Use the theme foreground/text color instead.
2011-10-17 18:45:35 -04:00
Cosimo Cecchi
3f95c46dff editable-label: remove useless code
No need to call _set_background() on the editable label widget.
2011-10-17 18:43:32 -04:00
Cosimo Cecchi
8b87a3e86e editable-label: make sure to size_request the padding set on the label
And not the alignment, which is an offset inside the allocated size.
2011-10-17 18:42:41 -04:00
Cosimo Cecchi
428b468e8e all: remove offset_x/offset_y parameters from eel_pop_up_context_menu()
They're unused now.
2011-10-05 15:08:05 -04:00
Federico Mena Quintero
7b290a2b2f Remove stale 'offset' in eel_pop_up_context_menu()
Also, fix the fallback timestamp for the menu popup.

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2011-10-05 08:08:10 -05:00
Cosimo Cecchi
61699ef56e eel: remove unused eel_gdk_rgba_is_dark() 2011-10-05 12:30:09 -04:00
Cosimo Cecchi
bcc62bec90 eel-string: remove unused code 2011-10-05 12:30:09 -04:00
Cosimo Cecchi
3daaaf4a9e all: don't use eel_strcmp() 2011-10-05 12:30:09 -04:00
Cosimo Cecchi
96254fec43 eel: remove unused eel-gtk-macros.h file 2011-10-05 12:30:09 -04:00
Mike Gorse
b11c8a6947 Fix accessibility for gtk 3.2, and send object:state-changed:selected
The code to derive the EelCanvasAccessible class no longer works as of
gtk+ 3.1.9.  Currently the recommended behavior is to derive from
GtkAccessible.

Also, canvas items should send object:state-changed:selected events when
selected and unselected; otherwise AT-SPI will not update its cache.

https://bugzilla.gnome.org/show_bug.cgi?id=650897
2011-09-19 13:32:23 -04:00
Cosimo Cecchi
22707fdc46 eel: remove unused eel_cairo_draw_layout_with_drop_shadows() 2011-09-07 14:38:33 -04:00
Cosimo Cecchi
2160de6924 a11y: remove some unused code 2011-07-14 10:58:59 -04:00
Cosimo Cecchi
34bbbc5786 all: remove some unneeded includes 2011-07-01 15:49:20 -04:00
Cosimo Cecchi
5c69502773 all: use g_cclosure_marshal_generic() instead of generating marshallers 2011-07-01 12:52:09 -04:00
Javier Jardón
a8443f64b6 eel: Use 'const' instead G_CONST_RETURN 2011-06-09 17:56:59 +01:00
Cosimo Cecchi
e3f055c886 eel-string: don't use deprecated gatomic API 2011-06-03 17:42:09 -04:00
Alexander Larsson
9669b91d70 Update all .gitignore files 2011-05-04 16:48:34 +02:00
Alexander Larsson
c7c860a264 Make sure we free custom accessibility objects
Custom accessibility objects, such as NautilusIconContainerAccessible
need to be freed when their corresponding widget/object dies, right
now we're not unreferencing the accessible, so its always leaked.
2011-03-28 12:38:44 +02:00
Alexander Larsson
1d48f02ea1 Add custom foreach to eel_g_hash_table_new_free_at_exit
This can be used to get some sort of printout for leaks in non-string
hashtables.
2011-03-25 14:35:43 +01:00
Cosimo Cecchi
c250b57023 Properly strip extensions when placing the duplication string
We use a similar matching filter to the one we use when renaming. It's
not ideal (mimetypes are hardcoded, and probably some are missing), but
at least we're consistent.

https://bugzilla.gnome.org/show_bug.cgi?id=351290
2011-03-21 15:03:43 -04:00
Cosimo Cecchi
d2c3410117 editable-label: only clear the selection if we change to insensitive
This is borrowed from GtkEntry, and should properly fix
https://bugzilla.gnome.org/show_bug.cgi?id=642766
2011-02-24 13:06:45 -05:00
Cosimo Cecchi
46b297a523 eel: remove unused method 2011-02-17 11:25:19 -05:00
Cosimo Cecchi
fbabd8e4f1 editable-label: chain up in style_updated() 2011-02-08 09:38:48 -05:00
Cosimo Cecchi
a293b96241 eel: remove unused eel-canvas-util 2011-02-01 12:35:55 -05:00
Cosimo Cecchi
8853b7bf92 Move EelRectCanvasItem to its own object in libnautilus-private/
eel-canvas-rect-ellipse has quite some unused code that make it hard to
modify.
2011-02-01 11:47:52 -05:00
Cosimo Cecchi
c1fa2a49e0 eel: remove eel_g_settings_add_auto_* functions 2011-01-30 17:31:29 -05:00
Cosimo Cecchi
6d079cc40a editable-label: fix some drawing regressions
Also, remove the copy/pasted gtkpango code again, as we can have a
better rendering without it.
2011-01-25 09:21:07 -05:00
Cosimo Cecchi
d4230de866 all: silence new warnings from GCC 4.6
GCC 4.6 introduced a new warning about variables declared and
initialized, but not really used in the function body. Remove all of
these occurrences to build cleanly.
2011-01-25 09:21:07 -05:00
Cosimo Cecchi
484c9a1bac eel: remove eel-gdk-pixbuf-extensions 2011-01-20 14:35:16 +01:00
Cosimo Cecchi
129d90ebcd all: remove unused includes of eel-gdk-pixbuf-extensions 2011-01-20 14:34:44 +01:00
Cosimo Cecchi
f58a70a92a eel: remove unused eel_pixbuf_render() 2011-01-20 12:57:43 +01:00