You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

93 lines
3.8 KiB

  1. /* GTK+: gtkfilechooserbutton.h
  2. *
  3. * Copyright (c) 2004 James M. Cape <jcape@ignore-your.tv>
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Library General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Library General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Library General Public
  16. * License along with this library; if not, write to the
  17. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18. * Boston, MA 02111-1307, USA.
  19. */
  20. #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
  21. #error "Only <gtk/gtk.h> can be included directly."
  22. #endif
  23. #ifndef __GTK_FILE_CHOOSER_BUTTON_H__
  24. #define __GTK_FILE_CHOOSER_BUTTON_H__
  25. #include <gtk/gtkhbox.h>
  26. #include <gtk/gtkfilechooser.h>
  27. G_BEGIN_DECLS
  28. #define GTK_TYPE_FILE_CHOOSER_BUTTON (gtk_file_chooser_button_get_type ())
  29. #define GTK_FILE_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButton))
  30. #define GTK_FILE_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
  31. #define GTK_IS_FILE_CHOOSER_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_FILE_CHOOSER_BUTTON))
  32. #define GTK_IS_FILE_CHOOSER_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_FILE_CHOOSER_BUTTON))
  33. #define GTK_FILE_CHOOSER_BUTTON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FILE_CHOOSER_BUTTON, GtkFileChooserButtonClass))
  34. typedef struct _GtkFileChooserButton GtkFileChooserButton;
  35. typedef struct _GtkFileChooserButtonPrivate GtkFileChooserButtonPrivate;
  36. typedef struct _GtkFileChooserButtonClass GtkFileChooserButtonClass;
  37. struct _GtkFileChooserButton
  38. {
  39. /*< private >*/
  40. GtkHBox parent;
  41. GtkFileChooserButtonPrivate *GSEAL (priv);
  42. };
  43. struct _GtkFileChooserButtonClass
  44. {
  45. /*< private >*/
  46. GtkHBoxClass parent_class;
  47. void (* file_set) (GtkFileChooserButton *fc);
  48. void (*__gtk_reserved1);
  49. void (*__gtk_reserved2);
  50. void (*__gtk_reserved3);
  51. void (*__gtk_reserved4);
  52. void (*__gtk_reserved5);
  53. void (*__gtk_reserved6);
  54. void (*__gtk_reserved7);
  55. };
  56. GType gtk_file_chooser_button_get_type (void) G_GNUC_CONST;
  57. GtkWidget * gtk_file_chooser_button_new (const gchar *title,
  58. GtkFileChooserAction action);
  59. #ifndef GTK_DISABLE_DEPRECATED
  60. GtkWidget * gtk_file_chooser_button_new_with_backend (const gchar *title,
  61. GtkFileChooserAction action,
  62. const gchar *backend);
  63. #endif /* GTK_DISABLE_DEPRECATED */
  64. GtkWidget * gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog);
  65. G_CONST_RETURN gchar *gtk_file_chooser_button_get_title (GtkFileChooserButton *button);
  66. void gtk_file_chooser_button_set_title (GtkFileChooserButton *button,
  67. const gchar *title);
  68. gint gtk_file_chooser_button_get_width_chars (GtkFileChooserButton *button);
  69. void gtk_file_chooser_button_set_width_chars (GtkFileChooserButton *button,
  70. gint n_chars);
  71. gboolean gtk_file_chooser_button_get_focus_on_click (GtkFileChooserButton *button);
  72. void gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button,
  73. gboolean focus_on_click);
  74. G_END_DECLS
  75. #endif /* !__GTK_FILE_CHOOSER_BUTTON_H__ */