2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>

* glue/adjustment.c:
	* glue/canvaspoints.c:
	* glue/clipboard.c:
	* glue/colorseldialog.c:
	* glue/combo.c:
	* glue/dialog.c:
	* glue/error.c:
	* glue/event.c:
	* glue/fileselection.c:
	* glue/list.c:
	* glue/object.c:
	* glue/paned.c:
	* glue/program.c:
	* glue/slist.c:
	* glue/style.c:
	* glue/type.c:
	* glue/value.c:
	* glue/widget.c: removed almost all the warnings.

svn path=/trunk/gtk-sharp/; revision=12751
This commit is contained in:
Gonzalo Paniagua Javier 2003-03-22 17:37:43 +00:00
parent 6dacec484b
commit d7a08db9f6
19 changed files with 210 additions and 2 deletions

View file

@ -1,3 +1,24 @@
2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* glue/adjustment.c:
* glue/canvaspoints.c:
* glue/clipboard.c:
* glue/colorseldialog.c:
* glue/combo.c:
* glue/dialog.c:
* glue/error.c:
* glue/event.c:
* glue/fileselection.c:
* glue/list.c:
* glue/object.c:
* glue/paned.c:
* glue/program.c:
* glue/slist.c:
* glue/style.c:
* glue/type.c:
* glue/value.c:
* glue/widget.c: removed almost all the warnings.
2003-03-22 Lee Mallabone <gnome@fonicmonkey.net>
* sample/makefile.in:

View file

@ -6,6 +6,30 @@
#include <gtk/gtkadjustment.h>
/* Forward declarations */
void gtksharp_gtk_adjustment_set_bounds (GtkAdjustment *adj,
gdouble lower,
gdouble upper,
gdouble step_increment,
gdouble page_increment,
gdouble page_size);
gdouble gtksharp_gtk_adjustment_get_lower (GtkAdjustment *adj);
gdouble gtksharp_gtk_adjustment_get_upper (GtkAdjustment *adj);
gdouble gtksharp_gtk_adjustment_get_step_increment (GtkAdjustment *adj);
gdouble gtksharp_gtk_adjustment_get_page_increment (GtkAdjustment *adj);
void gtksharp_gtk_adjustment_set_page_increment (GtkAdjustment *adj,
gdouble page_increment);
gdouble gtksharp_gtk_adjustment_get_page_size (GtkAdjustment *adj);
void gtksharp_gtk_adjustment_set_page_size (GtkAdjustment *adj, gdouble page_size);
/* */
void
gtksharp_gtk_adjustment_set_bounds (GtkAdjustment *adj,
gdouble lower, gdouble upper,

View file

@ -8,6 +8,11 @@
#include <libgnomecanvas/gnome-canvas.h>
#include <libgnomecanvas/gnome-canvas-util.h>
/* Forward declarations */
GnomeCanvasPoints *gtksharp_gnome_canvas_points_new_from_array (guint num_points,
double *coords);
/* */
GnomeCanvasPoints*
gtksharp_gnome_canvas_points_new_from_array (guint num_points, double *coords)
{

View file

@ -4,6 +4,20 @@
#include <gtk/gtk.h>
/* Forward declarations */
GSList *gtksharp_clipboard_target_list_add (GSList *list,
char *target,
guint flags,
guint info);
GtkTargetEntry *gtksharp_clipboard_target_list_to_array (GSList *list);
void gtksharp_clipboard_target_array_free (GtkTargetEntry *targets);
void gtksharp_clipboard_target_list_free (GSList *list);
/* */
GSList *
gtksharp_clipboard_target_list_add (GSList *list, char *target, guint flags, guint info)
{

View file

@ -7,6 +7,16 @@
#include <gtk/gtkcolorseldialog.h>
/* Forward declarations */
GtkWidget *gtksharp_color_selection_dialog_get_colorsel (GtkColorSelectionDialog *dialog);
GtkWidget *gtksharp_color_selection_dialog_get_ok_button (GtkColorSelectionDialog *dialog);
GtkWidget *gtksharp_color_selection_dialog_get_cancel_button (GtkColorSelectionDialog *dialog);
GtkWidget *gtksharp_color_selection_dialog_get_help_button (GtkColorSelectionDialog *dialog);
/* */
GtkWidget*
gtksharp_color_selection_dialog_get_colorsel (GtkColorSelectionDialog *dialog)
{

View file

@ -6,6 +6,11 @@
#include <gtk/gtkcombo.h>
/* Forward declarations */
GtkWidget *gtksharp_combo_get_entry (GtkCombo* combo);
GtkWidget *gtksharp_combo_get_button (GtkCombo* combo);
/* */
GtkWidget*
gtksharp_combo_get_entry (GtkCombo* combo)
{

View file

@ -7,6 +7,11 @@
#include <gtk/gtkdialog.h>
/* Forward declarations */
GtkWidget *gtksharp_dialog_get_vbox (GtkDialog *dialog);
GtkWidget *gtksharp_dialog_get_action_area (GtkDialog *dialog);
/* */
GtkWidget*
gtksharp_dialog_get_vbox (GtkDialog *dialog)
{

View file

@ -7,6 +7,10 @@
#include <glib.h>
/* Forward declarations */
gchar *gtksharp_error_get_message (GError *err);
/* */
gchar *
gtksharp_error_get_message (GError *err)
{

View file

@ -8,6 +8,10 @@
#include <gdk/gdkevents.h>
/* Forward declarations */
GdkEventType gtksharp_gdk_event_get_event_type (GdkEvent *event);
/* */
GdkEventType
gtksharp_gdk_event_get_event_type (GdkEvent *event)
{

View file

@ -7,6 +7,44 @@
#include <gtk/gtkfilesel.h>
/* Forward declarations */
GtkWidget *gtksharp_file_selection_get_dir_list (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_file_list (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_selection_entry (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_selection_text (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_main_vbox (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_ok_button (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_cancel_button (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_help_button (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_history_pulldown (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_history_menu (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_fileop_dialog (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_fileop_entry (GtkFileSelection *file);
gchar *gtksharp_file_selection_get_fileop_file (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_fileop_c_dir (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_fileop_del_file (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_fileop_ren_file (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_button_area (GtkFileSelection *file);
GtkWidget *gtksharp_file_selection_get_action_area (GtkFileSelection *file);
/* */
GtkWidget*
gtksharp_file_selection_get_dir_list (GtkFileSelection *file)
{

View file

@ -8,6 +8,11 @@
#include <glib/glist.h>
/* Forward declarations */
gpointer gtksharp_list_get_data (GList *l);
GList *gtksharp_list_get_next (GList *l);
/* */
gpointer
gtksharp_list_get_data (GList *l)
{

View file

@ -8,6 +8,12 @@
#include <glib-object.h>
#include <gtk/gtkobject.h>
/* Forward declarations */
void gtksharp_object_unref_if_floating (GObject *obj);
gboolean gtksharp_object_is_floating (GObject *obj);
int gtksharp_object_get_ref_count (GObject *obj);
/* */
void
gtksharp_object_unref_if_floating (GObject *obj)
{

View file

@ -7,6 +7,11 @@
#include <gtk/gtkpaned.h>
/* Forward declarations */
GtkWidget *gtksharp_paned_get_child1 (GtkPaned *paned);
GtkWidget *gtksharp_paned_get_child2 (GtkPaned *paned);
/* */
GtkWidget*
gtksharp_paned_get_child1 (GtkPaned *paned)
{

View file

@ -8,6 +8,14 @@ typedef struct {
GValue *value;
} PropertyArg;
/* Forward declarations */
GnomeProgram*
gtksharp_gnome_program_init (const char *app_id, const char *app_version,
const GnomeModuleInfo *module_info,
int argc, char **argv,
int nargs, PropertyArg* args);
/* */
static gchar*
get_default (GObjectClass *klass, const gchar *property)
{

View file

@ -8,6 +8,12 @@
#include <glib/gslist.h>
/* Forward declarations */
gpointer gtksharp_slist_get_data (GSList *l);
GSList *gtksharp_slist_get_next (GSList *l);
/* */
gpointer
gtksharp_slist_get_data (GSList *l)
{

View file

@ -8,6 +8,30 @@
#include <gtk/gtkstyle.h>
/* Forward declarations */
GdkGC *gtksharp_gtk_style_get_white_gc (GtkStyle *style);
GdkGC *gtksharp_gtk_style_get_black_gc (GtkStyle *style);
GdkGC *gtksharp_gtk_style_get_fg_gc (GtkStyle *style, int i);
GdkGC *gtksharp_gtk_style_get_bg_gc (GtkStyle *style, int i);
GdkColor *gtksharp_gtk_style_get_white (GtkStyle *style);
GdkColor *gtksharp_gtk_style_get_black (GtkStyle *style);
GdkColor *gtksharp_gtk_style_get_fg (GtkStyle *style, int i);
GdkColor *gtksharp_gtk_style_get_bg (GtkStyle *style, int i);
PangoFontDescription *gtksharp_gtk_style_get_font_description (GtkStyle *style);
int gtksharp_gtk_style_get_thickness (GtkStyle *style, int x);
void gtksharp_gtk_style_set_thickness (GtkStyle *style, int thickness);
/* */
/* FIXME: include all fields */
GdkGC*

View file

@ -8,7 +8,21 @@
#include <glib-object.h>
#include <stdio.h>
gchar *
/* Forward declarations */
G_CONST_RETURN gchar *gtksharp_get_type_name (GObject *obj);
gboolean gtksharp_is_object (gpointer obj);
GType gtksharp_get_type_id (GObject *obj);
GType gtksharp_get_parent_type (GType typ);
G_CONST_RETURN gchar *gtksharp_get_type_name_for_id (GType typ);
GType gtksharp_register_type (gchar *name, GType parent);
/* */
G_CONST_RETURN gchar *
gtksharp_get_type_name (GObject *obj)
{
return G_OBJECT_TYPE_NAME (obj);
@ -32,7 +46,7 @@ gtksharp_get_parent_type (GType typ)
return g_type_parent (typ);
}
gchar *
G_CONST_RETURN gchar *
gtksharp_get_type_name_for_id (GType typ)
{
return g_type_name (typ);

View file

@ -7,6 +7,11 @@
#include <glib-object.h>
/* Forward declarations */
GValue *gtksharp_value_create (GType g_type);
GValue *gtksharp_value_create_from_property (GObject *obj, const gchar* name);
/* */
GValue *
gtksharp_value_create (GType g_type)
{

View file

@ -7,6 +7,11 @@
#include <gtk/gtkwidget.h>
/* Forward declarations */
GdkRectangle *gtksharp_gtk_widget_get_allocation (GtkWidget *widget);
GdkWindow *gtksharp_gtk_widget_get_window (GtkWidget *widget);
/* */
GdkRectangle*
gtksharp_gtk_widget_get_allocation (GtkWidget *widget)
{