[rep-gtk] added GtkWindow from 2.12 API
- From: Christopher Bratusek <chrisb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rep-gtk] added GtkWindow from 2.12 API
- Date: Sat, 21 Aug 2010 20:34:47 +0000 (UTC)
commit 09d62bf7034fe5470ee23cf364e8cfe6f121e9a2
Author: Christopher Roy Bratusek <zanghar freenet de>
Date: Sat Aug 21 22:34:27 2010 +0200
added GtkWindow from 2.12 API
ChangeLog | 62 ++++++++++++++
configure.in | 2 +-
gdk.defs | 40 +++++++++
gtk.defs | 259 ++++++++++++++++++++++++++++++++++++++++++++++++++++------
4 files changed, 337 insertions(+), 26 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5509816..3e234fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,65 @@
+2010-08-21 Christopher Bratusek <zanghar freenet de>
+ * gtk.defs:
+ *************** gtkwindow.h *******************
+ gtk_window_set_startup_id
+ gtk_window_get_position
+ gtk_window_set_focus
+ gtk_window_get_focus
+ gtk_window_set_opacity
+ gtk_window_get_opacity
+ gtk_window_set_type_hint
+ gtk_window_get_type_hint
+ gtk_window_set_skip_taskbar_hint
+ gtk_window_get_skip_taskbar_hint
+ gtk_window_set_skip_pager_hint
+ gtk_window_get_skip_pager_hint
+ gtk_window_set_urgency_hint
+ gtk_window_get_urgency_hint
+ gtk_window_set_accept_focus
+ gtk_window_get_accept_focus
+ gtk_window_set_focus_on_map
+ gtk_window_get_focus_on_map
+ gtk_window_set_gravity
+ gtk_window_get_gravity
+ gtk_window_set_screen
+ gtk_window_get_screen
+ gtk_window_is_active
+ gtk_window_has_toplevel_focus
+ gtk_window_get_frame_dimensions
+ gtk_window_set_deletable
+ gtk_window_get_deletable
+ gtk_window_set_icon
+ gtk_window_set_icon_name
+ gtk_window_set_icon_from_file
+ gtk_window_get_icon
+ gtk_window_get_icon_name
+ gtk_window_set_default_icon
+ gtk_window_set_default_icon_name
+ gtk_window_set_default_icon_from_file
+ gtk_window_set_auto_startup_notification
+ gtk_window_present_with_time
+ gtk_window_fullscreen
+ gtk_window_unfullscreen
+ gtk_window_set_keep_above
+ gtk_window_set_keep_below
+ gtk_window_begin_resize_drag
+ gtk_window_begin_move_drag
+ gtk_window_get_default_size
+ gtk_window_get_size
+ GtkWindowGroup [object]
+ gtk_window_get_group
+ gtk_window_group_new
+ gtk_window_group_add_window
+ gtk_window_group_remove_window
+ == GtkWindow 2.12 API complete ==
+
+ * gdk.defs:
+ ************** gdkwindow.h ********************
+ GdkWindowTypeHint [enum]
+ GtkGravity [enum]
+ GdkScreen [object]
+ GdkWindowEdge [enum]
+
2010-07-24 Christopher Bratusek <zanghar freenet de>
* debian/source/format: set 3.0 (native) source format
diff --git a/configure.in b/configure.in
index e844762..ac8baac 100644
--- a/configure.in
+++ b/configure.in
@@ -31,7 +31,7 @@ AC_SUBST(datarootdir)
AM_PROG_LIBTOOL
dnl Release versioning info
-version="0.90.3"
+version="0.90.4"
dnl Find the system type; this isn't crucial
AC_CANONICAL_HOST
diff --git a/gdk.defs b/gdk.defs
index 920f513..036b804 100644
--- a/gdk.defs
+++ b/gdk.defs
@@ -12,6 +12,44 @@
(temp GDK_WINDOW_TEMP)
(pixmap GDK_WINDOW_FOREIGN))
+(define-enum GdkWindowTypeHint
+ (normal GDK_WINDOW_TYPE_HINT_NORMAL)
+ (dialog GDK_WINDOW_TYPE_HINT_DIALOG)
+ (menu GDK_WINDOW_TYPE_HINT_MENU)
+ (toolbar GDK_WINDOW_TYPE_HINT_TOOLBAR)
+ (splash GDK_WINDOW_TYPE_HINT_SPLASHSCREEN)
+ (utility GDK_WINDOW_TYPE_HINT_UTILITY)
+ (dock GDK_WINDOW_TYPE_HINT_DOCK)
+ (desktop GDK_WINDOW_TYPE_HINT_DESKTOP)
+ (dropdown GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU)
+ (popup GDK_WINDOW_TYPE_HINT_POPUP_MENU)
+ (tooltip GDK_WINDOW_TYPE_HINT_TOOLTIP)
+ (notification GDK_WINDOW_TYPE_HINT_NOTIFICATION)
+ (combo GDK_WINDOW_TYPE_HINT_COMBO)
+ (dnd GDK_WINDOW_TYPE_HINT_DND))
+
+(define-enum GdkGravity
+ (north-west GDK_GRAVITY_NORTH_WEST)
+ (north GDK_GRAVITY_NORTH)
+ (north-east GDK_GRAVITY_NORTH_EAST)
+ (west GDK_GRAVITY_WEST)
+ (center GDK_GRAVITY_CENTER)
+ (east GDK_GRAVITY_EAST)
+ (south-west GDK_GRAVITY_SOUTH_WEST)
+ (south GDK_GRAVITY_SOUTH)
+ (south-east GDK_GRAVITY_SOUTH_EAST)
+ (static GDK_GRAVITY_STATIC))
+
+(define-enum GdkWindowEdge
+ (north-west GDK_GRAVITY_NORTH_WEST)
+ (north GDK_GRAVITY_NORTH)
+ (north-east GDK_GRAVITY_NORTH_EAST)
+ (west GDK_GRAVITY_WEST)
+ (east GDK_GRAVITY_EAST)
+ (south-west GDK_GRAVITY_SOUTH_WEST)
+ (south GDK_GRAVITY_SOUTH)
+ (south-east GDK_GRAVITY_SOUTH_EAST))
+
(define-enum GdkWindowClass
(input-output GDK_INPUT_OUTPUT)
(input-only GDK_INPUT_ONLY))
@@ -284,6 +322,8 @@
(add-options GdkColor (conversion "sgtk_color_conversion"))
+(define-object GdkScreen (GType))
+
(define-object GdkPixmap (GType))
(define-boxed GdkBitmap
diff --git a/gtk.defs b/gtk.defs
index d9b8e17..30c234c 100644
--- a/gtk.defs
+++ b/gtk.defs
@@ -12,6 +12,7 @@
;; GtkCellRendererCombo, GtkCellEditable, GtkFileFilter, GtkFileChooserWidget,
;; GtkTreePath, GtkTreeSelection, GtkTreeIter, GtkTreeRowReference, GtkTreeModel,
;; GtkAboutDialog, GtkAccelGroup, GtkAccelLabel, GtkListStore, GtkTreeView
+;; GtkWindow
;; updated for GTK+ 1.3/2.0:
@@ -1707,6 +1708,11 @@
static_string
((GtkWindow window)))
+(define-func gtk_window_set_startup_id
+ none
+ ((GtkWindow window)
+ (string startup_id)))
+
(define-func gtk_window_add_accel_group
none
((GtkWindow window)
@@ -1722,6 +1728,12 @@
((GtkWindow window)
(GtkWindowPosition position)))
+(define-func gtk_window_get_position
+ none
+ ((GtkWindow window)
+ (int x)
+ (int y)))
+
(define-func gtk_window_set_default
none
((GtkWindow window)
@@ -1735,6 +1747,15 @@
int
((GtkWindow window)))
+(define-func gtk_window_set_focus
+ none
+ ((GtkWindow window)
+ (GtkWidget focus_widget)))
+
+(define-func gtk_window_get_focus
+ GtkWidget
+ ((GtkWindow window)))
+
(define-func gtk_window_set_transient_for
none
((GtkWindow window)
@@ -1744,15 +1765,68 @@
GtkWindow
((GtkWindow window)))
-;; XXX GdkWindowTypeHint?
-;(define-func gtk_window_set_type_hint
-; none
-; ((GtkWindow window)
-; (GdkWindowTypeHint hint)))
-;
-;(define-func gtk_window_get_type_hint
-; GdkWindowTypeHint
-; ((GtkWindow window)))
+(define-func gtk_window_set_opacity
+ none
+ ((GtkWindow window)
+ (double opacity)))
+
+(define-func gtk_window_get_opacity
+ double
+ ((GtkWindow window)))
+
+(define-func gtk_window_set_type_hint
+ none
+ ((GtkWindow window)
+ (GdkWindowTypeHint hint)))
+
+(define-func gtk_window_get_type_hint
+ GdkWindowTypeHint
+ ((GtkWindow window)))
+
+(define-func gtk_window_set_skip_taskbar_hint
+ none
+ ((GtkWindow window)
+ (bool hint)))
+
+(define-func gtk_window_get_skip_taskbar_hint
+ bool
+ ((GtkWindow window)))
+
+(define-func gtk_window_set_skip_pager_hint
+ none
+ ((GtkWindow window)
+ (bool hint)))
+
+(define-func gtk_window_get_skip_pager_hint
+ bool
+ ((GtkWindow window)))
+
+(define-func gtk_window_set_urgency_hint
+ none
+ ((GtkWindow window)
+ (bool hint)))
+
+(define-func gtk_window_get_urgency_hint
+ bool
+ ((GtkWindow window)))
+
+(define-func gtk_window_set_accept_focus
+ none
+ ((GtkWindow window)
+ (bool focus)))
+
+(define-func gtk_window_get_accept_focus
+ bool
+ ((GtkWindow window)))
+
+(define-func gtk_window_set_focus_on_map
+ none
+ ((GtkWindow window)
+ (bool focus)))
+
+(define-func gtk_window_get_focus_on_map
+ bool
+ ((GtkWindow window)))
(define-func gtk_window_set_destroy_with_parent
none
@@ -1772,18 +1846,34 @@
bool
((GtkWindow window)))
-;; XXX GdkGravity?
-;(define-func gtk_window_set_gravity
-; none
-; ((GtkWindow window)
-; (GdkGravity gravity)))
-;
-;(define-func gtk_window_get_gravity
-; GdkGravity
-; ((GtkWindow window)))
+(define-func gtk_window_set_gravity
+ none
+ ((GtkWindow window)
+ (GdkGravity gravity)))
+
+(define-func gtk_window_get_gravity
+ GdkGravity
+ ((GtkWindow window)))
;; XXX gtk_window_set_geometry_hints
+(define-func gtk_window_set_screen
+ none
+ ((GtkWindow window)
+ (GdkScreen screen)))
+
+(define-func gtk_window_get_screen
+ GdkScreen
+ ((GtkWindow window)))
+
+(define-func gtk_window_is_active
+ bool
+ ((GtkWindow window)))
+
+(define-func gtk_window_has_toplevel_focus
+ bool
+ ((GtkWindow window)))
+
(define-func gtk_window_set_has_frame
none
((GtkWindow window)
@@ -1801,7 +1891,13 @@
(int right)
(int bottom)))
-;; XXX gtk_window_get_frame_dimensions
+(define-func gtk_window_get_frame_dimensions
+ none
+ ((GtkWindow window)
+ (int left)
+ (int top)
+ (int right)
+ (int bottom)))
(define-func gtk_window_set_decorated
none
@@ -1812,8 +1908,58 @@
bool
((GtkWindow window)))
+(define-func gtk_window_set_deletable
+ none
+ ((GtkWindow window)
+ (bool deletable)))
+
+(define-func gtk_window_get_deletable
+ bool
+ ((GtkWindow window)))
+
;; XXX icon-list stuff
+(define-func gtk_window_set_icon
+ none
+ ((GtkWindow window)
+ (GdkPixbuf pixbuf)))
+
+(define-func gtk_window_set_icon_name
+ none
+ ((GtkWindow window)
+ (string name)))
+
+(define-func gtk_window_set_icon_from_file
+ bool
+ ((GtkWindow window)
+ (string file))
+ (gerror-arg t))
+
+(define-func gtk_window_get_icon
+ GdkPixbuf
+ ((GtkWindow window)))
+
+(define-func gtk_window_get_icon_name
+ string
+ ((GtkWindow window)))
+
+(define-func gtk_window_set_default_icon
+ none
+ ((GdkPixbuf icon)))
+
+(define-func gtk_window_set_default_icon_name
+ none
+ ((string name)))
+
+(define-func gtk_window_set_default_icon_from_file
+ bool
+ ((string name))
+ (gerror-arg t))
+
+(define-func gtk_window_set_auto_startup_notification
+ none
+ ((bool setting)))
+
(define-func gtk_window_set_modal
none
((GtkWindow window)
@@ -1823,7 +1969,6 @@
bool
((GtkWindow window)))
-
(define-func gtk_window_list_toplevels
((list GtkWindow))
())
@@ -1859,6 +2004,11 @@
none
((GtkWindow window)))
+(define-func gtk_window_present_with_time
+ none
+ ((GtkWindow window)
+ (int timestamp)))
+
(define-func gtk_window_iconify
none
((GtkWindow window)))
@@ -1883,7 +2033,40 @@
none
((GtkWindow window)))
-;; XXX begin_{move,resize}_drag
+(define-func gtk_window_fullscreen
+ none
+ ((GtkWindow window)))
+
+(define-func gtk_window_unfullscreen
+ none
+ ((GtkWindow window)))
+
+(define-func gtk_window_set_keep_above
+ none
+ ((GtkWindow window)
+ (bool setting)))
+
+(define-func gtk_window_set_keep_below
+ none
+ ((GtkWindow window)
+ (bool setting)))
+
+(define-func gtk_window_begin_resize_drag
+ none
+ ((GtkWindow window)
+ (GdkWindowEdge edge)
+ (int button)
+ (int x)
+ (int y)
+ (int timestamp)))
+
+(define-func gtk_window_begin_move_drag
+ none
+ ((GtkWindow window)
+ (int button)
+ (int x)
+ (int y)
+ (int timestamp)))
(define-func gtk_window_set_default_size
none
@@ -1891,7 +2074,11 @@
(int width)
(int height)))
-;; XXX get_default_size
+(define-func gtk_window_get_default_size
+ none
+ ((GtkWindow window)
+ (int width)
+ (int height)))
(define-func gtk_window_resize
none
@@ -1899,7 +2086,11 @@
(int width)
(int height)))
-;; XXX get_size
+(define-func gtk_window_get_size
+ none
+ ((GtkWindow window)
+ (int width)
+ (int height)))
(define-func gtk_window_move
none
@@ -1907,13 +2098,31 @@
(int x)
(int y)))
-;; XXX get_position
-
(define-func gtk_window_parse_geometry
bool
((GtkWindow window)
(string geometry)))
+(define-object GtkWindowGroup (GObject))
+
+(define-func gtk_window_get_group
+ GtkWindowGroup
+ ((GtkWindow window)))
+
+(define-func gtk_window_group_new
+ GtkWindowGroup
+ ())
+
+(define-func gtk_window_group_add_window
+ none
+ ((GtkWindowGroup group)
+ (GtkWindow window)))
+
+(define-func gtk_window_group_remove_window
+ none
+ ((GtkWindowGroup group)
+ (GtkWindow window)))
+
;;; HandleBox
(define-object GtkHandleBox (GtkBin))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]