diff options
author | Darin Adler <darin@src.gnome.org> | 2000-06-26 18:01:44 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2000-06-26 18:01:44 +0000 |
commit | 63bc589bc9342295e56f6d2c322536fc99d3ef49 (patch) | |
tree | c5515fc947f1b9303114d71053c2531008a37ede /libnautilus-extensions/nautilus-stock-dialogs.h | |
parent | 1575d03c675404ebfb92b12834132b7825c55d7b (diff) | |
download | nautilus-63bc589bc9342295e56f6d2c322536fc99d3ef49.tar.gz |
Ignore some additional generated files.
* components/services/install/command-line/.cvsignore:
* components/services/install/lib/.cvsignore:
Ignore some additional generated files.
* libnautilus-extensions/nautilus-gnome-extensions.h:
* libnautilus-extensions/nautilus-gnome-extensions.c:
Moved stock dialog functions to nautilus-stock-dialogs.[ch].
(nautilus_gnome_canvas_item_request_update_deep),
(nautilus_gnome_canvas_request_update_all),
(nautilus_gnome_canvas_set_scroll_region),
(nautilus_gnome_canvas_set_scroll_region_left_justify):
Added a bunch of functions that were previously private inside
NautilusIconContainer.
* libnautilus-extensions/nautilus-gtk-extensions.h:
* libnautilus-extensions/nautilus-gtk-extensions.c:
(nautilus_gtk_adjustment_set_value),
(nautilus_gtk_adjustment_clamp_value):
Added functions that treat the value range in a GtkAdjustment the
same way scroll bars do, taking the page size into account.
* libnautilus-extensions/nautilus-horizontal-splitter.h:
* libnautilus-extensions/nautilus-horizontal-splitter.c:
(nautilus_horizontal_splitter_initialize),
(toggle_splitter_position),
(nautilus_horizontal_splitter_button_press),
(nautilus_horizontal_splitter_button_release):
Fixed logic so that splitter will only open or close if you both
click and release within the splitter itself.
* libnautilus-extensions/nautilus-icon-private.h:
* libnautilus-extensions/nautilus-icon-container.c:
(icon_toggle_selected): Move icons to front when they are selected.
(set_scroll_region): Moved workaround that sets scroll region to
be large enough to fill the widget allocation into a function in
nautilus-gnome-extensions.h. In the process, I fixed the problem
where it would do the job wrong when the view was zoomed.
(lay_down_icons), (relayout), (reload_icon_positions):
Started work on sharing code between automatic layout of the entire
container and layout of new icons as the arrive.
(nautilus_icon_container_clear), (nautilus_icon_container_add):
Got started on the mechanism for laying out new icons as they arrive
in bunches instead of one at a time.
* libnautilus-extensions/nautilus-icon-dnd.c:
* libnautilus-extensions/nautilus-program-chooser.c:
* libnautilus-extensions/nautilus-program-choosing.c:
* src/file-manager/dfos-xfer.c:
* src/file-manager/fm-directory-view.c:
* src/file-manager/fm-error-reporting.c:
* src/nautilus-application.c:
* src/nautilus-location-bar.c:
* src/nautilus-property-browser.c:
* src/nautilus-window-manage-views.c:
* src/nautilus-window-menus.c:
Added includes to source files that use the stock dialogs.
* libnautilus-extensions/nautilus-stock-dialogs.h:
* libnautilus-extensions/nautilus-stock-dialogs.c:
(nautilus_timed_wait_stop), (convert_varargs_to_name_array),
(nautilus_simple_dialog), (turn_on_line_wrap_flag),
(turn_on_line_wrap_flag_callback), (show_ok_box),
(show_yes_no_box), (nautilus_info_dialog),
(nautilus_info_dialog_parented), (nautilus_warning_dialog),
(nautilus_warning_dialog_parented), (nautilus_error_dialog),
(nautilus_error_dialog_parented), (nautilus_yes_no_dialog),
(nautilus_yes_no_dialog_parented):
Moved all the stock dialog code in here.
* src/nautilus-sidebar-title.c: (update_icon): Only display the
icon when it's ready, instead of showing generic document icon
before that time.
(update_title), (update_more_info), (update_emblems),
(update_notes): Added FIXMEs about doing the same with other info.
(nautilus_sidebar_title_button_press_event): Added a FIXME to the
half-baked code in here.
Diffstat (limited to 'libnautilus-extensions/nautilus-stock-dialogs.h')
-rw-r--r-- | libnautilus-extensions/nautilus-stock-dialogs.h | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/libnautilus-extensions/nautilus-stock-dialogs.h b/libnautilus-extensions/nautilus-stock-dialogs.h index 2bc506b34..3c28f1ebe 100644 --- a/libnautilus-extensions/nautilus-stock-dialogs.h +++ b/libnautilus-extensions/nautilus-stock-dialogs.h @@ -30,12 +30,37 @@ typedef void (* NautilusCancelCallback) (gpointer callback_data); typedef struct NautilusTimedWait NautilusTimedWait; -NautilusTimedWait *nautilus_timed_wait_start (const char *window_title, - const char *wait_message, - NautilusCancelCallback cancel_callback, - gpointer callback_data, - GDestroyNotify destroy_notify, - GtkWindow *parent_window); -void nautilus_timed_wait_stop (NautilusTimedWait *timed_wait); +/* Dialog for cancelling something that normally is fast enough not to need a dialog. */ +NautilusTimedWait *nautilus_timed_wait_start (const char *window_title, + const char *wait_message, + NautilusCancelCallback cancel_callback, + gpointer callback_data, + GDestroyNotify destroy_notify, + GtkWindow *parent_window); +void nautilus_timed_wait_stop (NautilusTimedWait *timed_wait); + +/* Basic dialog with buttons. */ +int nautilus_simple_dialog (GtkWidget *parent, + const char *text, + const char *title, + ...); + +/* Variations on gnome stock dialogs; these do line wrapping. */ +GtkWidget * nautilus_info_dialog (const char *info); +GtkWidget * nautilus_info_dialog_parented (const char *info, + GtkWindow *parent); +GtkWidget * nautilus_warning_dialog (const char *warning); +GtkWidget * nautilus_warning_dialog_parented (const char *warning, + GtkWindow *parent); +GtkWidget * nautilus_error_dialog (const char *error); +GtkWidget * nautilus_error_dialog_parented (const char *error, + GtkWindow *parent); +GtkWidget * nautilus_yes_no_dialog (const char *question, + const char *yes_label, + const char *no_label); +GtkWidget * nautilus_yes_no_dialog_parented (const char *question, + const char *yes_label, + const char *no_label, + GtkWindow *parent); #endif /* NAUTILUS_STOCK_DIALOGS_H */ |