medit/moo/mooutils/mooutils-misc.h

69 lines
2.5 KiB
C
Raw Normal View History

2005-10-31 14:58:01 -08:00
/*
* mooutils-misc.h
*
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
2005-10-31 14:58:01 -08:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* See COPYING file that comes with this distribution.
*/
#ifndef __MOO_UTILS_MISC_H__
#define __MOO_UTILS_MISC_H__
#include <gtk/gtkwindow.h>
G_BEGIN_DECLS
gboolean moo_open_url (const char *url);
gboolean moo_open_email (const char *address,
const char *subject,
const char *body);
gboolean moo_window_is_hidden (GtkWindow *window);
void moo_window_present (GtkWindow *window);
GtkWindow *moo_get_top_window (GSList *windows);
GtkWindow *moo_get_toplevel_window (void);
gboolean moo_window_set_icon_from_stock (GtkWindow *window,
const char *stock_id);
void moo_log_window_show (void);
void moo_log_window_hide (void);
2006-03-15 00:16:42 -08:00
void moo_print (const char *string);
void moo_print_err (const char *string);
2005-10-31 14:58:01 -08:00
2006-03-15 00:16:42 -08:00
void moo_set_log_func_window (gboolean show_now);
2005-10-31 14:58:01 -08:00
void moo_set_log_func_file (const char *log_file);
2006-03-15 00:16:42 -08:00
void moo_set_log_func_silent (void);
void moo_reset_log_func (void);
2005-10-31 14:58:01 -08:00
2005-11-16 23:04:35 -08:00
void moo_segfault (void);
2005-10-31 14:58:01 -08:00
void moo_selection_data_set_pointer (GtkSelectionData *data,
GdkAtom type,
gpointer ptr);
gpointer moo_selection_data_get_pointer (GtkSelectionData *data,
GdkAtom type);
GdkModifierType moo_get_modifiers (GtkWidget *widget);
void moo_menu_item_set_accel_label (GtkWidget *menu_item,
const char *label);
void moo_menu_item_set_label (GtkWidget *menu_item,
const char *label,
gboolean mnemonic);
2005-10-31 14:58:01 -08:00
G_END_DECLS
#endif /* __MOO_UTILS_MISC_H__ */