Use default title if NULL is passed.
2005-01-06 James M. Cape <jcape@ignore-your.tv> * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new) (gtk_file_chooser_button_new_with_backend): Use default title if NULL is passed. * docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples match API.
This commit is contained in:

committed by
James M. Cape

parent
0e8c3f4a2f
commit
977a557a67
@ -1,3 +1,12 @@
|
|||||||
|
2005-01-06 James M. Cape <jcape@ignore-your.tv>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
|
||||||
|
(gtk_file_chooser_button_new_with_backend): Use default title if
|
||||||
|
NULL is passed.
|
||||||
|
|
||||||
|
* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
|
||||||
|
match API.
|
||||||
|
|
||||||
2005-01-05 Federico Mena Quintero <federico@ximian.com>
|
2005-01-05 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
Fix #161409:
|
Fix #161409:
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2005-01-06 James M. Cape <jcape@ignore-your.tv>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
|
||||||
|
(gtk_file_chooser_button_new_with_backend): Use default title if
|
||||||
|
NULL is passed.
|
||||||
|
|
||||||
|
* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
|
||||||
|
match API.
|
||||||
|
|
||||||
2005-01-05 Federico Mena Quintero <federico@ximian.com>
|
2005-01-05 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
Fix #161409:
|
Fix #161409:
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2005-01-06 James M. Cape <jcape@ignore-your.tv>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
|
||||||
|
(gtk_file_chooser_button_new_with_backend): Use default title if
|
||||||
|
NULL is passed.
|
||||||
|
|
||||||
|
* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
|
||||||
|
match API.
|
||||||
|
|
||||||
2005-01-05 Federico Mena Quintero <federico@ximian.com>
|
2005-01-05 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
Fix #161409:
|
Fix #161409:
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
2005-01-06 James M. Cape <jcape@ignore-your.tv>
|
||||||
|
|
||||||
|
* gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_new)
|
||||||
|
(gtk_file_chooser_button_new_with_backend): Use default title if
|
||||||
|
NULL is passed.
|
||||||
|
|
||||||
|
* docs/reference/gtk/tmpl/gtkfilechooserbutton.sgml: Make examples
|
||||||
|
match API.
|
||||||
|
|
||||||
2005-01-05 Federico Mena Quintero <federico@ximian.com>
|
2005-01-05 Federico Mena Quintero <federico@ximian.com>
|
||||||
|
|
||||||
Fix #161409:
|
Fix #161409:
|
||||||
|
@ -20,7 +20,8 @@ property to %TRUE.
|
|||||||
{
|
{
|
||||||
GtkWidget *button;
|
GtkWidget *button;
|
||||||
|
|
||||||
button = gtk_file_chooser_button_new (_("Select a file"));
|
button = gtk_file_chooser_button_new (_("Select a file"),
|
||||||
|
GTK_FILE_CHOOSER_ACTION_OPEN);
|
||||||
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (button),
|
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (button),
|
||||||
"/etc");
|
"/etc");
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,7 @@
|
|||||||
|
|
||||||
#define GTK_FILE_CHOOSER_BUTTON_GET_PRIVATE(object) (GTK_FILE_CHOOSER_BUTTON ((object))->priv)
|
#define GTK_FILE_CHOOSER_BUTTON_GET_PRIVATE(object) (GTK_FILE_CHOOSER_BUTTON ((object))->priv)
|
||||||
|
|
||||||
|
#define DEFAULT_TITLE N_("Select A File")
|
||||||
#define HOME_DISPLAY_NAME N_("Home")
|
#define HOME_DISPLAY_NAME N_("Home")
|
||||||
#define DESKTOP_DISPLAY_NAME N_("Desktop")
|
#define DESKTOP_DISPLAY_NAME N_("Desktop")
|
||||||
#define FALLBACK_DISPLAY_NAME N_("(None)")
|
#define FALLBACK_DISPLAY_NAME N_("(None)")
|
||||||
@ -349,7 +350,7 @@ gtk_file_chooser_button_class_init (GtkFileChooserButtonClass * class)
|
|||||||
g_param_spec_string ("title",
|
g_param_spec_string ("title",
|
||||||
P_("Title"),
|
P_("Title"),
|
||||||
P_("The title of the file chooser dialog."),
|
P_("The title of the file chooser dialog."),
|
||||||
_("Select a File"),
|
_(DEFAULT_TITLE),
|
||||||
G_PARAM_READWRITE));
|
G_PARAM_READWRITE));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2211,7 +2212,7 @@ gtk_file_chooser_button_new (const gchar *title,
|
|||||||
|
|
||||||
return g_object_new (GTK_TYPE_FILE_CHOOSER_BUTTON,
|
return g_object_new (GTK_TYPE_FILE_CHOOSER_BUTTON,
|
||||||
"action", action,
|
"action", action,
|
||||||
"title", title,
|
"title", (title ? title : _(DEFAULT_TITLE)),
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2236,15 +2237,15 @@ gtk_file_chooser_button_new_with_backend (const gchar *title,
|
|||||||
action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, NULL);
|
action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, NULL);
|
||||||
|
|
||||||
return g_object_new (GTK_TYPE_FILE_CHOOSER_BUTTON,
|
return g_object_new (GTK_TYPE_FILE_CHOOSER_BUTTON,
|
||||||
"title", title,
|
|
||||||
"action", action,
|
"action", action,
|
||||||
|
"title", (title ? title : _(DEFAULT_TITLE)),
|
||||||
"file-system-backend", backend,
|
"file-system-backend", backend,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gtk_file_chooser_button_new_with_dialog:
|
* gtk_file_chooser_button_new_with_dialog:
|
||||||
* @dialog: the #GtkDialog widget to use.
|
* @dialog: the #GtkFileChooserDialog widget to use.
|
||||||
*
|
*
|
||||||
* Creates a #GtkFileChooserButton widget which uses @dialog as it's
|
* Creates a #GtkFileChooserButton widget which uses @dialog as it's
|
||||||
* file-picking window. Note that @dialog must be a #GtkFileChooserDialog (or
|
* file-picking window. Note that @dialog must be a #GtkFileChooserDialog (or
|
||||||
@ -2323,7 +2324,7 @@ gtk_file_chooser_button_get_width_chars (GtkFileChooserButton *button)
|
|||||||
/**
|
/**
|
||||||
* gtk_file_chooser_button_set_width_chars:
|
* gtk_file_chooser_button_set_width_chars:
|
||||||
* @button: the button widget to examine.
|
* @button: the button widget to examine.
|
||||||
* @n_chars: the new width, in chracters.
|
* @n_chars: the new width, in characters.
|
||||||
*
|
*
|
||||||
* Sets the width (in characters) that @button will use to @n_chars.
|
* Sets the width (in characters) that @button will use to @n_chars.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user