Bryan Schumaker
d3c9301628
ocarina: Access footer through get_footer() and put_footer()
...
I combined reference counting with the get_footer() function to make
using it easier (no manual reference counting). put_footer() will
deallocate the widget if the reference count is 0 (this is already done
by the g_object_unref() function) so it should work in a sane way.
2011-10-27 12:08:21 -04:00
Bryan Schumaker
882f917c8f
ocarina: Add a reference to the footer before moving
...
Calling the remove() function will destroy the footer if it has no other
references. To prevent this, I need to call g_object_ref() add a
reference to the widget.
2011-10-21 14:51:22 -04:00
Bryan Schumaker
2c12cb80aa
ocarina: Move tab page content into a table
...
This should make it easier to add or remove headers and footers so that
I can share one widget between all pages.
2011-10-20 19:33:05 -04:00
Bryan Schumaker
62b86f5136
ocarina: Add a settings tab for library management
...
Right now I just add an empty vbox to the page. I eventually want to
show information about each library path.
2011-09-10 09:42:34 -04:00
Bryan Schumaker
b8f977cc35
ocarina: Add a switch for tab label expanding
...
Pass in true to cause the tab label to expand and fill up the entire
space, false if the label should not expand.
2011-09-09 08:27:58 -04:00
Bryan Schumaker
976637f88b
ocarina: Add settings tab
...
Eventually this tab will be used for configuring everything. Right now
it's an empty page.
2011-09-09 08:14:07 -04:00
Bryan Schumaker
c3b82c401f
ocarina: Created tabs for the main window
...
Most things are going to be displayed in a gtk notebook. This patch
creates that notebook.
2011-09-07 08:25:52 -04:00
Bryan Schumaker
b8e8f7179c
Remove Ocarina 4 files
...
Get them out of the way to begin work on Ocarina 5
2011-08-14 10:46:22 -04:00
Bryan Schumaker
a8aef66696
ocarina: Add settings button
...
Right now, clicking the button will print out some text. I'll
eventually have it open a new tab for configuring Ocarina.
2011-06-18 10:25:15 -04:00
Bryan Schumaker
445b3a79bc
ocarina: Don't do gtk locking anymore
...
I added this to help with setting album art in other threads. Now that
I'm forcing this to the main thread, I don't think I need it anymore.
2011-06-18 10:11:02 -04:00
Bryan Schumaker
38f1d6ec8c
ocarina: Only set album art once
...
When we receive a new image, we should check if it is the same as the
current image. If it is, we don't need to change anything!
2011-06-18 10:01:10 -04:00
Bryan Schumaker
66d4d4979f
ocarina: Set album art from on_load() attrs
...
It's available here, so I might as well. Hopefully this will cut down
on the number of crashes I get, too...
2011-06-17 23:44:28 -04:00
Bryan Schumaker
5fcb590f53
ocarina: Pass attributes throughout the gui
...
This avoids repeated calls to the get_attrs() function at every step.
2011-06-17 20:03:13 -04:00
Bryan Schumaker
63574a17c6
ocarina: Need to import export code
...
Otherwise I can't save playlists, since the functions won't be
available.
2011-05-29 18:23:26 -04:00
Bryan Schumaker
7c39b9ccd1
ocarina: Fix now playing label order
...
I initially had length and play count switched.
2011-05-26 09:02:44 -04:00
Bryan Schumaker
ae2fc30da8
ocarina: Remove export button
...
I don't plan on changing the library anytime soon, so there is no need
to export it to an xml file.
2011-05-23 10:02:43 -04:00
Bryan Schumaker
4f8f4d3ce3
ocarina: Use new filtering functions
...
I set this up through callbacks. It should filter all sources at once,
rather than just the current page.
2011-05-22 09:27:26 -04:00
Bryan Schumaker
ac0f23ab80
ocarina: Remove oldlibrary code
...
The new library covers everything, so this is no longer needed.
2011-05-21 22:34:39 -04:00
Bryan Schumaker
531ceb2c17
libsaria: Rename library.py to oldlibrary.py
...
I want to preserve the old library as I slowly introduce the new one.
This should help.
2011-05-20 21:22:21 -04:00
Bryan Schumaker
b373a88618
ocarina: Page showing and hiding improvements
...
When hiding a page I want to switch to page n - 1, but gtk was moving me
to n + 1. I also added a function to show, and optionally switch to, a
page.
2011-05-15 11:36:26 -04:00
Bryan Schumaker
7a26110750
ocarina: Set and resize images atomically
...
Doing this all in one step prevents multiple threads from clashing with
each other. I also add in clearing the old image before setting a new
one.
2011-05-11 21:46:15 -04:00
Bryan Schumaker
217156d322
ocarina: Gtk locking around album art resize
...
I only want one thread modifying album art at a time, so I need to use
threads_enter() and threads_leave() here.
2011-05-08 10:33:01 -04:00
Bryan Schumaker
0862c57b6a
ocarina: Clean up image resize function
...
I now wrap the entire resize operation in a try / except block.
Hopefully this will help to catch some errors. I also cleaned up my
"return early" conditions.
2011-05-08 10:24:10 -04:00
Bryan Schumaker
a6bd531aee
ocarina: Fetch image during load
...
I also set absolute sizes for album art. Scaling to size 1 was causing
scale_simple() to block forever.
2011-05-01 12:46:17 -04:00
Bryan Schumaker
889e17fab9
libsaria: Remove event system from controls
...
This is a big step forward for reving the event system entirely.
2011-05-01 12:46:17 -04:00
Bryan Schumaker
34dcb7998f
libsaria: Add in absolute seeking by percentage
...
I give a percentage and gstreamer will seek to that position in the
song.
2011-05-01 12:46:17 -04:00
Bryan Schumaker
99771a34fb
libsaria: on_like() callback
...
This replaces the LIKE event for setting if the user likes the current
song.
2011-05-01 12:46:16 -04:00
Bryan Schumaker
8574cda529
libsaria: Ported over Ocarina 5.0 audio functions
...
The new audio code I developed makes more sense and should be easier to
work with. It makes sense to port it over.
2011-05-01 12:46:16 -04:00
Bryan Schumaker
6cb857d988
ocarina: Switch over to new preferences methods
...
I removed the old methods, so I need to use the new methods for ocarina
to start up. This patch switches everything over.
NOTE: As of this patch, ocarina should work again.
2011-05-01 12:46:16 -04:00
Bryan Schumaker
3b131f33ef
ocarina: Added universal open button
...
I want to redo the chooser for this, but I'll need to redo the sources
first. I guess it'll have to wait for 4.5?
2011-05-01 12:27:11 -04:00
Bryan Schumaker
8891cb8c36
ocarina: Added new save button
...
This saves playlists
2011-05-01 12:27:03 -04:00
Bryan Schumaker
71d73ecdd1
ocarina: Manually set album art when image clicked
2011-05-01 12:26:44 -04:00
Bryan Schumaker
091aa3972c
ocarina: Added update button
...
I think it works... I may not have gotten updating the library correct
in v<4.3. I'll fix it in 4.5 when I rewrite libsaria.
2011-05-01 12:26:34 -04:00
Bryan Schumaker
5ff0419633
ocarina: Added volume button to header
2011-05-01 12:25:44 -04:00
Bryan Schumaker
6291cb6686
ocarina: clean up like / dislike button functions
...
these functions are now created as part of the button generating
functions
2011-05-01 12:25:34 -04:00
Bryan Schumaker
1a86edca35
ocarina: clean up button generating code
...
I use a generic "set attributes" function to set the default attributes,
rather than having this function essentially twice (once for normal
buttons and once for toggle buttons)
2011-05-01 12:25:25 -04:00
Bryan Schumaker
97af3d50e4
ocarina: Call toggle buttons without toggling enabled
...
I disable the toggle callback, call a function, and then reconnect the
callback.
2011-05-01 12:25:15 -04:00
Bryan Schumaker
55730d3dbf
ocarina: Remove old footer code
2011-05-01 12:25:06 -04:00
Bryan Schumaker
40751a9eed
ocarina: Remove old body code
2011-05-01 12:24:57 -04:00
Bryan Schumaker
a4d27d0b0f
ocarina: Catch exception on empty album art file
...
I don't want to set the image to an empty file. Improving the cache so
that it doesn't store empty files is the best solution, so for now I
just check the error (and keep the function from uninviting itself from
the POSTGETART event)
2011-05-01 12:24:17 -04:00
Bryan Schumaker
29a47e84ad
Ocarina: g key goes to currently playing song
2011-05-01 12:24:04 -04:00
Bryan Schumaker
2b0c7792d0
ocarina: f key toggles footer
2011-05-01 12:23:53 -04:00
Bryan Schumaker
72e59c9263
ocarina: Added shortcut famework
...
Now to add more shortcuts...
2011-05-01 12:23:22 -04:00
Bryan Schumaker
2feb354631
ocarina: Remove old tiny footer code
2011-05-01 12:23:12 -04:00
Bryan Schumaker
349d4fc1bd
ocarina: Album art in tiny footer
2011-05-01 12:23:02 -04:00
Bryan Schumaker
8e4e17f0df
ocarina: Remove old now playing page code
...
It has been reimplemented in a new file
2011-05-01 12:21:28 -04:00
Bryan Schumaker
be3f8845fe
ocarina: Remove some of the old album art code
...
It was commented out and no longer necessary.
2011-05-01 12:21:16 -04:00
Bryan Schumaker
cc3d95d9a0
ocarina: Reset album art when new song loaded
...
I set it to the ocarina logo, it can change again later.
2011-05-01 12:21:04 -04:00
Bryan Schumaker
6482dc157b
ocarina: Maximum album art size
...
Change song while on tiny footer
Expand to large footer
Look at the HUGE album art image
To fix this, I set a maximum size that album art can be
2011-05-01 12:20:52 -04:00
Bryan Schumaker
e60848c119
ocarina: Fix cur song display on tiny footer
...
It used to be "$TITLE $ARTIST". I changed it to "$TITLE by $ARTIST"
2011-05-01 12:20:40 -04:00