sinek/src utility.c,1.37,1.38
[email protected] Sat, 18 Jan 2003 21:36:41 -0800
| Newsgroups | gmane.comp.video.sinek.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/sinek/sinek/src
In directory sc8-pr-cvs1:/tmp/cvs-serv25690
Modified Files:
utility.c
Log Message:
gtkxine changes
Index: utility.c
===================================================================
RCS file: /cvsroot/sinek/sinek/src/utility.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- utility.c 4 Jan 2003 09:24:11 -0000 1.37
+++ utility.c 19 Jan 2003 05:36:39 -0000 1.38
@@ -9,6 +9,7 @@
*/
#include "common.h"
+#include "gtkxine.h"
#include <stdarg.h>
struct window
@@ -348,9 +349,9 @@
if(ev->button == 3 && w->flags & WM_MENU)
popup_pop(ev->time);
else if(ev->button == 4 && w->flags & WM_VOLUME)
- audio_slide_volume(5);
+ gtk_xine_adjust_volume(GTK_XINE(sinek.xine), 5);
else if(ev->button == 5 && w->flags & WM_VOLUME)
- audio_slide_volume(-5);
+ gtk_xine_adjust_volume(GTK_XINE(sinek.xine), -5);
else
return FALSE;
return TRUE;
@@ -531,7 +532,6 @@
{
gchar *file, *tmp, *path;
int mode;
- xine_cfg_entry_t entry;
mode = (int)g_object_get_data(G_OBJECT(fs), "mode");
@@ -545,9 +545,7 @@
gtk_label_get(GTK_LABEL(gtk_bin_get_child(GTK_BIN(fs->history_pulldown))), &tmp);
path = g_strconcat(tmp, G_DIR_SEPARATOR_S, NULL);
- xine_config_lookup_entry(sinek.xine, "sinek.last_dir", &entry);
- entry.str_value = path;
- xine_config_update_entry(sinek.xine, &entry);
+ gtk_xine_config_set(GTK_XINE(sinek.xine), "sinek.last_dir", path);
g_free(path);
gtk_widget_hide(GTK_WIDGET(fs));
}
@@ -561,7 +559,7 @@
if(browse_win) goto out;
- path = xine_config_register_string(sinek.xine, "sinek.last_dir", "", NULL, NULL, 0, NULL, NULL);
+ path = gtk_xine_config_register_string(GTK_XINE(sinek.xine), "sinek.last_dir", "");
freq = gtk_file_selection_new(_("Select Video File"));
gtk_container_set_border_width(GTK_CONTAINER(freq), 10);
-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will
allow you to extend the highest allowed 128 bit encryption to all your
clients even if they use browsers that are limited to 40 bit encryption.
Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en