diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-08-17 16:52:04 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-08-17 16:52:04 +0000 |
commit | 3cc0ae605a10eb7f24bc6083e2388a7103a4aeb4 (patch) | |
tree | c97221243a374b99360cbbe4b16a02c6ac5de661 /gtk/gtkfilechooserbutton.h | |
parent | 3a76d4848baabbd396fdc10358cab7b32ec23ebd (diff) | |
download | gtk+-3cc0ae605a10eb7f24bc6083e2388a7103a4aeb4.tar.gz |
Use g_message() throughout, add RTL envar for rtl testing.
2004-08-17 Matthias Clasen <mclasen@redhat.com>
* tests/testfilechooserbutton.c: Use g_message() throughout, add RTL envar for
rtl testing.
* gtk/gtkfilechooserbutton.c: Get rid of HAVE_CONFIG_H.
(gtk_file_chooser_button_init): Use gtk_drag_dest_add_text_targets().
(gtk_file_chooser_button_drag_data_received): Use gtk_selection_data_get_text().
(gtk_file_chooser_button_set_dialog): _gtk_file_chooser_entry_set_base_folder()
seems to expect a path, not an uri.
(update_dialog): Handle g_filename_from_uri() returning NULL, don't free
info if it is NULL.
* gtk/gtkfilechooserbutton.h: Minor stylistic changes.
Diffstat (limited to 'gtk/gtkfilechooserbutton.h')
-rw-r--r-- | gtk/gtkfilechooserbutton.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/gtk/gtkfilechooserbutton.h b/gtk/gtkfilechooserbutton.h index 151bbaf5e9..ebbad4a170 100644 --- a/gtk/gtkfilechooserbutton.h +++ b/gtk/gtkfilechooserbutton.h @@ -19,10 +19,10 @@ */ #ifndef __GTK_FILE_CHOOSER_BUTTON_H__ -#define __GTK_FILE_CHOOSER_BUTTON_H__ 1 +#define __GTK_FILE_CHOOSER_BUTTON_H__ -#include "gtkhbox.h" -#include "gtkfilechooser.h" +#include <gtk/gtkhbox.h> +#include <gtk/gtkfilechooser.h> G_BEGIN_DECLS @@ -69,19 +69,17 @@ struct _GtkFileChooserButtonClass }; -GType gtk_file_chooser_button_get_type (void) G_GNUC_CONST; - -GtkWidget *gtk_file_chooser_button_new (const gchar *title); -GtkWidget *gtk_file_chooser_button_new_with_backend (const gchar *title, - const gchar *backend); -GtkWidget *gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog); - -G_CONST_RETURN gchar *gtk_file_chooser_button_get_title (GtkFileChooserButton *button); -void gtk_file_chooser_button_set_title (GtkFileChooserButton *button, - const gchar *title); -gboolean gtk_file_chooser_button_get_active (GtkFileChooserButton *button); -void gtk_file_chooser_button_set_active (GtkFileChooserButton *button, - gboolean is_active); +GType gtk_file_chooser_button_get_type (void) G_GNUC_CONST; +GtkWidget * gtk_file_chooser_button_new (const gchar *title); +GtkWidget * gtk_file_chooser_button_new_with_backend (const gchar *title, + const gchar *backend); +GtkWidget * gtk_file_chooser_button_new_with_dialog (GtkWidget *dialog); +G_CONST_RETURN gchar *gtk_file_chooser_button_get_title (GtkFileChooserButton *button); +void gtk_file_chooser_button_set_title (GtkFileChooserButton *button, + const gchar *title); +gboolean gtk_file_chooser_button_get_active (GtkFileChooserButton *button); +void gtk_file_chooser_button_set_active (GtkFileChooserButton *button, + gboolean is_active); G_END_DECLS |