mp3splt-gtk 0.9.3.1519
Loading...
Searching...
No Matches
mp3splt-gtk.c File Reference
#include "mp3splt-gtk.h"
#include "ui_types.h"
#include <langinfo.h>
Include dependency graph for mp3splt-gtk.c:

Go to the source code of this file.

Functions

void add_idle (gint priority, GSourceFunc function, gpointer data, GDestroyNotify notify)
 
GThread * create_thread (GThreadFunc func, gpointer data, ui_state *ui, const char *name)
 
void create_thread_and_unref (GThreadFunc func, gpointer data, ui_state *ui, const char *name)
 
gboolean exit_application (GtkWidget *widget, GdkEvent *event, gpointer data)
 
gint main (gint argc, gchar **argv, gchar **envp)
 
void split_action (ui_state *ui)
 

Variables

ui_stateui
 

Detailed Description


The main file,

this file contains the main() function as well as some globally used functions.

Definition in file mp3splt-gtk.c.

Function Documentation

◆ add_idle()

void add_idle ( gint priority,
GSourceFunc function,
gpointer data,
GDestroyNotify notify )

Definition at line 342 of file mp3splt-gtk.c.

◆ create_thread()

GThread * create_thread ( GThreadFunc func,
gpointer data,
ui_state * ui,
const char * name )

Definition at line 322 of file mp3splt-gtk.c.

◆ create_thread_and_unref()

void create_thread_and_unref ( GThreadFunc func,
gpointer data,
ui_state * ui,
const char * name )

Definition at line 337 of file mp3splt-gtk.c.

◆ exit_application()

gboolean exit_application ( GtkWidget * widget,
GdkEvent * event,
gpointer data )

Definition at line 347 of file mp3splt-gtk.c.

◆ main()

gint main ( gint argc,
gchar ** argv,
gchar ** envp )

The traditional C main function.

Todo
  • Handle the case that more than one input file is specified at the command line. Until now we just open the first one of the specified files which on windows is basically what notepad does.
    And decide what to do in this case:
    • Going into the multiple files mode will mean that our functionality is enabled if several files are opened at once in Windows
    • And opening a separate instance of our program would mean that windows and nautilus behaviour are consistent (nautilus seems to open every file separately) but - does this really make sense?
  • Handle the case that the specified inputfile is a playlist file
  • Set the full path to the file to make sure that the player will find it even if we are called in a different directory than the file is in and stuff.
  • Gstreamer needs a fully qualified path to the audio file in order to be able to play it back. Don't know why. But what I know is that on solaris realpath() may return a relative filename. And there might be an old system around that does not malloc() memory for a pathname if the pathname we give to it is 0 => find a solution that works everywhere.

Definition at line 503 of file mp3splt-gtk.c.

◆ split_action()

void split_action ( ui_state * ui)

Definition at line 52 of file mp3splt-gtk.c.

Variable Documentation

◆ ui

ui_state* ui

Definition at line 47 of file mp3splt-gtk.c.