ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Morozov <morozov@novosoft.ru>
To: sisyphus@altlinux.ru
Subject: [sisyphus] Глючок в xmms
Date: 19 Feb 2002 22:58:02 +0600
Message-ID: <1014137882.3024.0.camel@sig.novosoft.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

Надеюсь, меня не попрут отсюда за маленький патчик к xmms. Без него
функция выбора файлов, вообще говоря, некорректна, что и проявляется при
использовании нестандартного диалога выбора файлов (xmms падает в кору).

Кстати, вопросец: а почему бы не включить GTK'шный advanced file
selector в Sisyphus? Кроме явно некорректного xmms'а (правда,
корректность моего патчика - тоже вопрос), никаких проблем не замечено,
чес-слово :-)



[-- Attachment #2: xmms-1.2.6-filebrowser_get_files.patch --]
[-- Type: text/x-patch, Size: 691 bytes --]

diff -urN xmms-1.2.6.orig/xmms/util.c xmms-1.2.6/xmms/util.c
--- xmms-1.2.6.orig/xmms/util.c	Tue Jan  8 21:59:19 2002
+++ xmms-1.2.6/xmms/util.c	Tue Feb 19 22:27:24 2002
@@ -698,9 +698,13 @@
 	/*
 	 * There got to be some clean way to do this too
 	 */
-	gtk_label_get(GTK_LABEL(GTK_BIN(filesel->history_pulldown)->child), &ptr);
+	ptr = gtk_file_selection_get_filename(filesel);
+	g_return_if_fail(ptr != NULL);
+	ptr = g_dirname(ptr);
+	g_return_if_fail(ptr != NULL);
 	/* This will give an extra slash if the current dir is the root. */
 	cfg.filesel_path = g_strconcat(ptr, "/", NULL);
+	g_free(ptr);
 
 	node = GTK_CLIST(filesel->file_list)->selection;
 	while (node)

             reply	other threads:[~2002-02-19 16:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-19 16:58 Alexey Morozov [this message]
2002-02-19 17:21 ` [sisyphus] " Michael Shigorin
2002-02-19 17:54   ` Alexey Morozov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1014137882.3024.0.camel@sig.novosoft.ru \
    --to=morozov@novosoft.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git