~ubuntu-branches/ubuntu/hardy/pcmanfm/hardy-backports

« back to all changes in this revision

Viewing changes to src/app-chooser-dialog.h

  • Committer: Bazaar Package Importer
  • Author(s): J?r?me Guelfucci
  • Date: 2008-07-01 00:40:37 UTC
  • mfrom: (5.1.3 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080701004037-q6pfacskp0xnk10k
Tags: 0.4.3-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
*  C Interface: appchooserdlg
3
 
*
4
 
* Description: 
5
 
*
6
 
*
7
 
* Author: Hong Jen Yee (PCMan) <pcman.tw (AT) gmail.com>, (C) 2006
8
 
*
9
 
* Copyright: See COPYING file that comes with this distribution
10
 
*
11
 
*/
12
 
 
13
 
#ifndef _APP_CHOOSER_DLG_H_
14
 
#define _APP_CHOOSER_DLG_H_
15
 
 
16
 
#include <gtk/gtk.h>
17
 
#include "vfs-mime-type.h"
18
 
 
19
 
G_BEGIN_DECLS
20
 
 
21
 
/* Let the user choose a application */
22
 
const gchar* ptk_choose_app_for_mime_type( GtkWindow* parent,
23
 
                                    VFSMimeType* mime_type );
24
 
 
25
 
/* Let the user choose a application */
26
 
GtkWidget* app_chooser_dialog_new( GtkWindow* parent, VFSMimeType* mime_type );
27
 
 
28
 
/*
29
 
* Return selected application in a ``newly allocated'' string.
30
 
* Returned string is the file name of the *.desktop file or a command line.
31
 
* These two can be separated by check if the returned string is ended
32
 
* with ".desktop".
33
 
*/
34
 
const gchar* app_chooser_dialog_get_selected_app( GtkWidget* dlg );
35
 
 
36
 
/*
37
 
* Check if the user set the selected app default handler.
38
 
*/
39
 
gboolean app_chooser_dialog_get_set_default( GtkWidget* dlg );
40
 
 
41
 
 
42
 
void
43
 
on_notebook_switch_page                (GtkNotebook     *notebook,
44
 
                                        GtkNotebookPage *page,
45
 
                                        guint            page_num,
46
 
                                        gpointer         user_data);
47
 
 
48
 
void
49
 
on_browse_btn_clicked                  (GtkButton       *button,
50
 
                                        gpointer         user_data);
51
 
 
52
 
 
53
 
G_END_DECLS
54
 
 
55
 
#endif
56