aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2012-05-21 09:04:41 +0200
committerJoakim Verona2012-05-21 09:04:41 +0200
commitaec4aaf7216eb43c374f7b065e518368adf316b7 (patch)
tree9f5e3389fac92b229b515dd63ff86f9e003c8ca2
parent74f082445c1dd0c92d5bb187db0d50287e3a7bae (diff)
downloademacs-aec4aaf7216eb43c374f7b065e518368adf316b7.tar.gz
emacs-aec4aaf7216eb43c374f7b065e518368adf316b7.zip
reinstal emocsfiked changes
-rw-r--r--lisp/emacs-lisp/cl-loaddefs.el2
-rw-r--r--src/emacsgtkfixed.c31
-rw-r--r--src/emacsgtkfixed.h26
3 files changed, 35 insertions, 24 deletions
diff --git a/lisp/emacs-lisp/cl-loaddefs.el b/lisp/emacs-lisp/cl-loaddefs.el
index 2fe6b480b21..aa577577a20 100644
--- a/lisp/emacs-lisp/cl-loaddefs.el
+++ b/lisp/emacs-lisp/cl-loaddefs.el
@@ -286,7 +286,7 @@ This also does some trivial optimizations to make the form prettier.
286;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist 286;;;;;; flet progv psetq do-all-symbols do-symbols dotimes dolist
287;;;;;; do* do loop return-from return block etypecase typecase ecase 287;;;;;; do* do loop return-from return block etypecase typecase ecase
288;;;;;; case load-time-value eval-when destructuring-bind function* 288;;;;;; case load-time-value eval-when destructuring-bind function*
289;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "045f9588e561616741b5f9aef96ce7df") 289;;;;;; defmacro* defun* gentemp gensym) "cl-macs" "cl-macs.el" "d19555cbac873fe90a312b8977a8ebff")
290;;; Generated autoloads from cl-macs.el 290;;; Generated autoloads from cl-macs.el
291 291
292(autoload 'gensym "cl-macs" "\ 292(autoload 'gensym "cl-macs" "\
diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c
index 194d3d3879f..e45cc716a31 100644
--- a/src/emacsgtkfixed.c
+++ b/src/emacsgtkfixed.c
@@ -30,28 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30#ifdef HAVE_XWIDGETS 30#ifdef HAVE_XWIDGETS
31#include "xwidget.h" 31#include "xwidget.h"
32#endif 32#endif
33
34#define EMACS_TYPE_FIXED emacs_fixed_get_type ()
35#define EMACS_FIXED(obj) \
36 G_TYPE_CHECK_INSTANCE_CAST (obj, EMACS_TYPE_FIXED, EmacsFixed)
37
38typedef struct _EmacsFixed EmacsFixed;
39typedef struct _EmacsFixedPrivate EmacsFixedPrivate;
40typedef struct _EmacsFixedClass EmacsFixedClass;
41
42struct _EmacsFixed
43{
44 GtkFixed container;
45
46 /*< private >*/
47 EmacsFixedPrivate *priv;
48};
49
50struct _EmacsFixedClass
51{
52 GtkFixedClass parent_class;
53};
54
55struct _EmacsFixedPrivate 33struct _EmacsFixedPrivate
56{ 34{
57 struct frame *f; 35 struct frame *f;
@@ -64,7 +42,6 @@ static void emacs_fixed_get_preferred_width (GtkWidget *widget,
64static void emacs_fixed_get_preferred_height (GtkWidget *widget, 42static void emacs_fixed_get_preferred_height (GtkWidget *widget,
65 gint *minimum, 43 gint *minimum,
66 gint *natural); 44 gint *natural);
67static GType emacs_fixed_get_type (void);
68G_DEFINE_TYPE (EmacsFixed, emacs_fixed, GTK_TYPE_FIXED) 45G_DEFINE_TYPE (EmacsFixed, emacs_fixed, GTK_TYPE_FIXED)
69 46
70#ifdef HAVE_XWIDGETS 47#ifdef HAVE_XWIDGETS
@@ -187,8 +164,10 @@ static void
187emacs_fixed_class_init (EmacsFixedClass *klass) 164emacs_fixed_class_init (EmacsFixedClass *klass)
188{ 165{
189 GtkWidgetClass *widget_class; 166 GtkWidgetClass *widget_class;
167 GtkFixedClass *fixed_class;
190 168
191 widget_class = (GtkWidgetClass*) klass; 169 widget_class = (GtkWidgetClass*) klass;
170 fixed_class = (GtkFixedClass*) klass;
192 171
193 widget_class->get_preferred_width = emacs_fixed_get_preferred_width; 172 widget_class->get_preferred_width = emacs_fixed_get_preferred_width;
194 widget_class->get_preferred_height = emacs_fixed_get_preferred_height; 173 widget_class->get_preferred_height = emacs_fixed_get_preferred_height;
@@ -198,6 +177,12 @@ emacs_fixed_class_init (EmacsFixedClass *klass)
198 g_type_class_add_private (klass, sizeof (EmacsFixedPrivate)); 177 g_type_class_add_private (klass, sizeof (EmacsFixedPrivate));
199} 178}
200 179
180static GType
181emacs_fixed_child_type (GtkFixed *container)
182{
183 return GTK_TYPE_WIDGET;
184}
185
201static void 186static void
202emacs_fixed_init (EmacsFixed *fixed) 187emacs_fixed_init (EmacsFixed *fixed)
203{ 188{
diff --git a/src/emacsgtkfixed.h b/src/emacsgtkfixed.h
index 3fa294aa41e..90fb37e521b 100644
--- a/src/emacsgtkfixed.h
+++ b/src/emacsgtkfixed.h
@@ -27,7 +27,33 @@ G_BEGIN_DECLS
27 27
28struct frame; 28struct frame;
29 29
30#define EMACS_TYPE_FIXED (emacs_fixed_get_type ())
31#define EMACS_FIXED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EMACS_TYPE_FIXED, EmacsFixed))
32#define EMACS_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EMACS_TYPE_FIXED, EmacsFixedClass))
33#define EMACS_IS_FIXED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EMACS_TYPE_FIXED))
34#define EMACS_IS_FIXED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EMACS_TYPE_FIXED))
35#define EMACS_FIXED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EMACS_TYPE_FIXED, EmacsFixedClass))
36
37typedef struct _EmacsFixed EmacsFixed;
38typedef struct _EmacsFixedPrivate EmacsFixedPrivate;
39typedef struct _EmacsFixedClass EmacsFixedClass;
40
41struct _EmacsFixed
42{
43 GtkFixed container;
44
45 /*< private >*/
46 EmacsFixedPrivate *priv;
47};
48
49
50struct _EmacsFixedClass
51{
52 GtkFixedClass parent_class;
53};
54
30extern GtkWidget *emacs_fixed_new (struct frame *f); 55extern GtkWidget *emacs_fixed_new (struct frame *f);
56extern GType emacs_fixed_get_type (void);
31 57
32G_END_DECLS 58G_END_DECLS
33 59