Commit Graph

231 Commits

Author SHA1 Message Date
Peter Wehrfritz cd20fbc9d9 *API BREAK* see the discussion in the mailing list. misc and e_modules will follow
SVN revision: 30970
2007-07-25 17:01:04 +00:00
Dan Sinclair 6d48fb4e38 - efreet_init will call efreet_icon_init so there is no reason to do the
call again


SVN revision: 30905
2007-07-19 14:56:35 +00:00
Dan Sinclair 71da5f4639 - guard the efreet_icon init/shutdown methods as efreet_mime is calling it
internally


SVN revision: 30904
2007-07-19 14:54:51 +00:00
Nicholas Hughart 0a4d1e3605 Added efreet_mime_type_icon_get which will retrieve a mimetype icon. This follows the loose specification described in the fdo icon spec. Also added efreet_icon_list_find which will search for a list of icons in a theme before falling back to inherited themes. Also made a slight modification to the fallback detection for efreet_mime. Tabs will no longer trigger the return of application/octet-stream.
SVN revision: 30875
2007-07-17 19:21:20 +00:00
Nicholas Hughart be190f1117 Adding efreet_desktop_environment_get
SVN revision: 30873
2007-07-17 15:07:59 +00:00
codewarrior 61b09fd882 no need to work on a file if its empty. speeds things up a hell of a lot.
SVN revision: 30803
2007-07-13 23:23:13 +00:00
kaethorn 3844e0f0ab remove ecore_alloc and compare_results from debian package.
SVN revision: 30793
2007-07-13 12:40:56 +00:00
Dan Sinclair 36867e14a2 - remove ecore_desktop comparison tests
SVN revision: 30767
2007-07-11 15:17:30 +00:00
Carsten Haitzler 78408fe60a 1. fix a lot of things so they pass make distcheck - so many things have
broken. guys - need to be more careful!
2. asparagus
3. some extra docs/comments for evas


SVN revision: 30696
2007-07-10 00:13:26 +00:00
Nicholas Hughart 5f4e0e936e API update. Now you have more control over which methods are used to check for a type by using the efreet_mime_*_type_get functions. Also vastly increased the speed of the glob checking.
SVN revision: 30612
2007-07-06 03:01:21 +00:00
Nicholas Hughart 7a470acd75 No debugging
SVN revision: 30593
2007-07-04 15:46:19 +00:00
Nicholas Hughart 4e6ce1caf5 This should work now for big endian.
SVN revision: 30592
2007-07-04 15:29:29 +00:00
Dan Sinclair 1a14377b08 - hm, change this back...
SVN revision: 30587
2007-07-04 03:00:46 +00:00
Dan Sinclair e120a285b7 - update authors
SVN revision: 30581
2007-07-03 18:03:58 +00:00
Dan Sinclair 54f06c5e70 - formatting
SVN revision: 30580
2007-07-03 18:01:56 +00:00
Nicholas Hughart 93d3922d79 Added fallback mime types according to the spec. Should only get a NULL return when the file doesn't exist.
SVN revision: 30579
2007-07-03 17:55:20 +00:00
Dan Sinclair 0445f933df - stop losing the last mime
SVN revision: 30578
2007-07-03 16:22:17 +00:00
Dan Sinclair d1cd6e6710 - remove debug
SVN revision: 30577
2007-07-03 16:15:51 +00:00
Dan Sinclair 8c156ad2fc - update the magic parser to use mmap. fixes earlier hack
SVN revision: 30576
2007-07-03 16:10:30 +00:00
Dan Sinclair 891fbe5708 - update mime test
SVN revision: 30572
2007-07-03 15:07:00 +00:00
Dan Sinclair 0cf64dd8fd - this is a hack but keeps it from segv'ing if the delimiter is split over a
buffer read


SVN revision: 30571
2007-07-03 14:12:12 +00:00
Dan Sinclair 7176001239 - cleanup
SVN revision: 30570
2007-07-03 13:59:40 +00:00
rephorm 150d857e6f plug last leak
SVN revision: 30569
2007-07-03 13:41:44 +00:00
kaethorn 0dd5e37e1a remove efreet-config from install files.
clean up rules.


SVN revision: 30565
2007-07-03 12:53:18 +00:00
Nicholas Hughart 94b2f0a24f Fixed almost all the leaks. One minor one is still lingering that I can't quite figure out.
SVN revision: 30555
2007-07-03 05:46:54 +00:00
Nicholas Hughart f9727d47ae Updated quite a bit. API break: efreet_mime_get is now efreet_mime_type_get and it no longer accepts methods as a parameter. It will do the full check of the magic and glob rules based on recommendations in the spec. Also fixed the major leaks, still a few minor ones left.
SVN revision: 30553
2007-07-03 04:47:29 +00:00
Dan Sinclair d43f40e6c7 - simplify the monitor code. still gets spanked on shutdown for some reason
SVN revision: 30546
2007-07-02 22:01:44 +00:00
Dan Sinclair 563d1a104e - oops, though I'd compiled that....
SVN revision: 30545
2007-07-02 20:16:23 +00:00
Dan Sinclair 5406ab673f - formatting
- simplify a couple routines
- make the magic loading not loop infinitly on big endian


SVN revision: 30544
2007-07-02 20:08:35 +00:00
Andreas Volz e8a13809f9 removed efreet-config.in because of pkg-config
SVN revision: 30533
2007-07-01 18:25:36 +00:00
Dan Sinclair 5e87a2a846 - cleanup
SVN revision: 30520
2007-07-01 16:32:34 +00:00
Nicholas Hughart fe2842a58f Everything is working except the file monitors to look for new/modified files. This is going up in hopes that someone can find the bug in my code pertaining to this as I haven't been able to.
If you find the bug and fix it, don't hesitate to commit the code :)
Have Fun\!


SVN revision: 30515
2007-07-01 05:10:14 +00:00
kiwi a001af9e23 fix some warnings, mostly missing "void" when a function has no parameters
SVN revision: 30474
2007-06-27 10:57:54 +00:00
Sebastian Dransfeld ee938c5191 Free efreet_icon_deprecated_user_dir on shutdown.
SVN revision: 30430
2007-06-22 10:20:44 +00:00
Sebastian Dransfeld b97be5f5c1 Make IF_FREE better suited for free'ing global variables. The free cb
can now not interfere with it's owner during free.


SVN revision: 30429
2007-06-22 09:45:09 +00:00
Sebastian Dransfeld 68159d9bdd - Add ref function.
- Don't free Efreet_Desktops on shutdown, this is the responsibility of
  those who do efreet_desktop_get. If we free them here, there will be a
  problem with the events in efreet_util, as the events might try to free
  the Efreet_Desktops during ecore_shutdown.
- Check if the cache exists before trying to remove a Efreet_Desktop, as
  we might try to free a Efreet_Desktop after efreet_shutdown.


SVN revision: 30428
2007-06-22 09:39:58 +00:00
Sebastian Dransfeld a3ab006950 util is optional, need to init this too.
SVN revision: 30426
2007-06-22 09:05:36 +00:00
rephorm 2993abfb7d add efreet_type_alias()
SVN revision: 30411
2007-06-20 18:04:26 +00:00
Dan Sinclair 4182b76087 - make sure we have the right number of nodes
SVN revision: 30397
2007-06-18 18:01:37 +00:00
rephorm 166cdf9873 add a function to get desktop commands immediately when no remote uri's are passed in
SVN revision: 30386
2007-06-18 04:26:50 +00:00
Carsten Haitzler a6ad878e08 ASPARAGUS!
SVN revision: 30379
2007-06-17 15:25:52 +00:00
Carsten Haitzler e01578f037 allow to load a .desktop file and bypass cache
SVN revision: 30369
2007-06-17 08:29:20 +00:00
Carsten Haitzler 1f4e4934b2 make load time a long long - so we can use the modified time on disk (this will
make it 2038 safe).


SVN revision: 30350
2007-06-17 00:33:39 +00:00
Sebastian Dransfeld 0de6ba55b1 Formatting.
SVN revision: 30330
2007-06-14 18:37:31 +00:00
Carsten Haitzler b784b8142a efreet can actually free icons now... and flush the cache explicitly
SVN revision: 30328
2007-06-14 15:53:02 +00:00
rephorm 5a12b590ac add efreet_menu_new()
small fixes


SVN revision: 30267
2007-06-07 01:22:48 +00:00
Sebastian Dransfeld 5b271a1069 Init and shutdown util
SVN revision: 30217
2007-06-03 19:53:08 +00:00
Sebastian Dransfeld 214cf08966 Create category lists while scanning for .desktop files.
SVN revision: 30216
2007-06-03 18:07:23 +00:00
Sebastian Dransfeld a4c53227fb Fix EmbeddedTextRectangle parsing.
SVN revision: 30153
2007-05-29 20:24:27 +00:00
Sebastian Dransfeld ab766b0398 Don't store the complete path in the name element.
SVN revision: 30152
2007-05-29 20:18:21 +00:00
Sebastian Dransfeld 5e3a40da08 No need for the 'last' variable.
SVN revision: 30151
2007-05-29 19:29:46 +00:00
Sebastian Dransfeld 9bc0ab2e6e Check if we find the monitor in the list.
SVN revision: 30123
2007-05-28 10:35:12 +00:00
Carsten Haitzler f1d6383852 limit recursion - safety for bad theme config.
SVN revision: 30080
2007-05-26 06:45:51 +00:00
Carsten Haitzler 002d09cc7d asparagus - pass distcheck.
SVN revision: 29865
2007-05-05 15:14:17 +00:00
Sebastian Dransfeld d783212329 Fix Merge type="all"
SVN revision: 29862
2007-05-05 07:49:01 +00:00
Sebastian Dransfeld 90510b648a dump test names.
SVN revision: 29861
2007-05-05 07:37:08 +00:00
Sebastian Dransfeld eea11312db Store the .directory files which provides the icon.
SVN revision: 29860
2007-05-05 07:21:40 +00:00
Sebastian Dransfeld 8691b711a3 formatting.
SVN revision: 29849
2007-05-04 17:45:26 +00:00
Sebastian Dransfeld fc6aa64ea0 Fix environment set.
Better new buffer value.


SVN revision: 29845
2007-05-04 15:02:55 +00:00
rephorm 2a090ac94b fix test
SVN revision: 29838
2007-05-04 03:28:12 +00:00
Sebastian Dransfeld 405dcfc633 implement more of fdo menu layout.
SVN revision: 29805
2007-05-02 19:35:43 +00:00
rephorm e0beb5c67d oops
SVN revision: 29743
2007-04-27 20:02:16 +00:00
rephorm 3aed040af1 This isn't correct.
<Parent>
  <!--
    <!-- comment -->
    <Child>Text</Child>
  -->
</Parent>

Technically would be parsed as:

Parent Tag
  Child Tag
    Text Node - "Text"
  Text Node "-->"

But, we ignore text nodes after the first child node anyway.


SVN revision: 29742
2007-04-27 19:57:39 +00:00
Dan Sinclair 89b58e232d - add test case for incorrect menu name. this currently works correctly.
- add test case for nested comments with tags inside. this test fails.


SVN revision: 29741
2007-04-27 19:48:54 +00:00
Carsten Haitzler 9af768a436 efreet passes make distcheck now.
SVN revision: 29634
2007-04-22 03:53:02 +00:00
Eric Schuele 64f4fbc453 Fix efreet cache_fill issue by guaranteeing we attempt to obtain at least one file in the dir. This allows the idler to run again at a later time.
SVN revision: 29587
2007-04-18 14:18:28 +00:00
Sebastian Dransfeld ece3b075c4 Rename prototype to match function name.
SVN revision: 29543
2007-04-15 17:19:08 +00:00
Sebastian Dransfeld edf0a0942b Use ecore_string_instance so we can do pointer matching instead of string
matching.


SVN revision: 29533
2007-04-15 10:53:54 +00:00
rephorm cd7db5cbdb api change
SVN revision: 29531
2007-04-15 07:50:03 +00:00
rephorm 1b269ba561 leak--
add functions to retrieve a list of desktop categories and a list of desktops in a given category


SVN revision: 29530
2007-04-15 07:24:03 +00:00
rephorm 354550b349 add efreet_util_menus_find()
SVN revision: 29527
2007-04-15 06:16:54 +00:00
rephorm b2aac1d94a don't leak empty menu entries
SVN revision: 29525
2007-04-15 04:54:45 +00:00
rephorm d35772f52a ${XDG_DATA_HOME}/icons should be scanned, not ${XDG_DATA_HOME}
SVN revision: 29524
2007-04-15 04:51:37 +00:00
Sebastian Dransfeld 5e20d74ef1 --
SVN revision: 29497
2007-04-13 16:29:41 +00:00
Sebastian Dransfeld c3056543a1 No need to this as we get the contents of the dir by using remove first.
SVN revision: 29496
2007-04-13 16:29:29 +00:00
Sebastian Dransfeld 814eed1b11 Scan dir before monitoring it.
SVN revision: 29495
2007-04-13 16:28:32 +00:00
Sebastian Dransfeld 1e2ce0a4af This is done.
SVN revision: 29494
2007-04-13 16:06:01 +00:00
Sebastian Dransfeld ea5f208a00 Fix segv. Create struct before adding it to the hash.
SVN revision: 29458
2007-04-10 16:11:54 +00:00
Sebastian Dransfeld 838a4883b7 Don't emit add events during inital scan.
SVN revision: 29456
2007-04-10 07:18:51 +00:00
Sebastian Dransfeld e7107630db Make util optional.
SVN revision: 29452
2007-04-09 12:16:09 +00:00
Sebastian Dransfeld 6d320096e0 Keep track of previous .desktop file on update.
SVN revision: 29395
2007-04-05 21:10:50 +00:00
Sebastian Dransfeld bd2a3953a9 Make sure header variables matches the real variables.
SVN revision: 29393
2007-04-05 20:56:23 +00:00
Sebastian Dransfeld 78cb82439f Events when .desktop files change.
SVN revision: 29392
2007-04-05 20:53:43 +00:00
Sebastian Dransfeld c6e4580e33 ++
SVN revision: 29391
2007-04-05 20:34:57 +00:00
Sebastian Dransfeld 0ab450e0f3 Use correct source for desktop.
SVN revision: 29390
2007-04-05 20:29:26 +00:00
Sebastian Dransfeld 9c2d4cf883 This is valid. StartupWMClass can match either name or class, check
http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html


SVN revision: 29389
2007-04-05 20:24:53 +00:00
Sebastian Dransfeld d6277241e0 Prioritize user .desktop files.
SVN revision: 29388
2007-04-05 20:22:58 +00:00
Sebastian Dransfeld 196f55ef54 Remove desktop from menu.
SVN revision: 29371
2007-04-05 12:10:32 +00:00
rephorm 30c129cc88 actually find the extension
SVN revision: 29356
2007-04-04 19:12:42 +00:00
Sebastian Dransfeld 6c73d2b536 --
SVN revision: 29349
2007-04-04 12:03:15 +00:00
Sebastian Dransfeld d4b0093826 Efreet style.
SVN revision: 29348
2007-04-04 12:00:40 +00:00
Sebastian Dransfeld e27e139ac8 Efreet style.
SVN revision: 29347
2007-04-04 11:55:24 +00:00
Sebastian Dransfeld 170542eef2 Drop icons without extenstion
SVN revision: 29346
2007-04-04 11:54:23 +00:00
Sebastian Dransfeld 0a2d7b785e Strip known extensions from icons.
SVN revision: 29345
2007-04-04 11:52:46 +00:00
Sebastian Dransfeld 943b05a5d9 enable sloppy spec by default.
SVN revision: 29339
2007-04-04 10:50:35 +00:00
Sebastian Dransfeld 8ec72de321 Use ifdef instead of if for strict spec.
SVN revision: 29338
2007-04-04 10:41:53 +00:00
Sebastian Dransfeld 1e0ad5e156 Free ecore_string on shutdown.
SVN revision: 29337
2007-04-04 10:29:10 +00:00
Sebastian Dransfeld 4502f59643 If a user adds an extension, we should prefer it.
SVN revision: 29335
2007-04-04 10:18:09 +00:00
Sebastian Dransfeld d043c399f2 ++
SVN revision: 29334
2007-04-04 10:16:24 +00:00
Sebastian Dransfeld 567e91133d Done
SVN revision: 29333
2007-04-04 10:11:26 +00:00