gtksourceview2 0.90.7 → 0.90.8

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,12 @@
1
+ 2011-02-12 Kouhei Sutou <kou@cozmixng.org>
2
+
3
+ * ext/gtksourceview2/depend: fix .pc path. #3178294
4
+ Reported by OBATA Akio. Thanks!!!
5
+
6
+ 2011-02-05 Masaaki Aoyagi
7
+
8
+ * ext/gtksourceview2/*.c: change to ANSI C style.
9
+
1
10
  2011-01-30 Kouhei Sutou <kou@cozmixng.org>
2
11
 
3
12
  * ./: support gem build for Windows.
@@ -1,5 +1,5 @@
1
1
  install:
2
2
  if test -n "$(pkgconfigdir)"; then \
3
3
  $(MAKEDIRS) $(pkgconfigdir); \
4
- $(INSTALL_DATA) ../ruby-gtksourceview2.pc $(pkgconfigdir); \
4
+ $(INSTALL_DATA) ruby-gtksourceview2.pc $(pkgconfigdir); \
5
5
  fi
@@ -33,10 +33,7 @@
33
33
  * Returns: a newly created Gtk::SourceBuffer object.
34
34
  */
35
35
  static VALUE
36
- sourcebuffer_new (argc, argv, self)
37
- int argc;
38
- VALUE *argv;
39
- VALUE self;
36
+ sourcebuffer_new(int argc, VALUE *argv, VALUE self)
40
37
  {
41
38
  VALUE val;
42
39
 
@@ -99,8 +96,7 @@ gboolean gtk_source_buffer_can_undo (GtkSourceBuffer *buffer
99
96
  * Returns: self.
100
97
  */
101
98
  static VALUE
102
- sourcebuffer_redo (self)
103
- VALUE self;
99
+ sourcebuffer_redo(VALUE self)
104
100
  {
105
101
  gtk_source_buffer_redo (_SELF (self));
106
102
  return self;
@@ -120,8 +116,7 @@ sourcebuffer_redo (self)
120
116
  * Returns: self.
121
117
  */
122
118
  static VALUE
123
- sourcebuffer_undo (self)
124
- VALUE self;
119
+ sourcebuffer_undo(VALUE self)
125
120
  {
126
121
  gtk_source_buffer_undo (_SELF (self));
127
122
  return self;
@@ -143,8 +138,7 @@ sourcebuffer_undo (self)
143
138
  * Returns: self
144
139
  */
145
140
  static VALUE
146
- sourcebuffer_begin_not_undoable_action(self)
147
- VALUE self;
141
+ sourcebuffer_begin_not_undoable_action(VALUE self)
148
142
  {
149
143
  gtk_source_buffer_begin_not_undoable_action (_SELF (self));
150
144
 
@@ -166,8 +160,7 @@ sourcebuffer_begin_not_undoable_action(self)
166
160
  * Returns: self
167
161
  */
168
162
  static VALUE
169
- sourcebuffer_end_not_undoable_action(self)
170
- VALUE self;
163
+ sourcebuffer_end_not_undoable_action(VALUE self)
171
164
  {
172
165
  gtk_source_buffer_end_not_undoable_action (_SELF (self));
173
166
  return self;
@@ -189,8 +182,7 @@ sourcebuffer_end_not_undoable_action(self)
189
182
  * Returns: the return value of the provided block.
190
183
  */
191
184
  static VALUE
192
- sourcebuffer_not_undoable_action (self)
193
- VALUE self;
185
+ sourcebuffer_not_undoable_action(VALUE self)
194
186
  {
195
187
  VALUE block, ret;
196
188
 
@@ -232,9 +224,7 @@ sourcebuffer_not_undoable_action (self)
232
224
  * Returns: a new Gtk::SourceMark object, owned by the buffer.
233
225
  */
234
226
  static VALUE
235
- sourcebuffer_create_source_mark (argc, argv, self)
236
- int argc;
237
- VALUE *argv, self;
227
+ sourcebuffer_create_source_mark(int argc, VALUE *argv, VALUE self)
238
228
  {
239
229
  VALUE name, category, where;
240
230
 
@@ -250,10 +240,7 @@ sourcebuffer_create_source_mark (argc, argv, self)
250
240
  }
251
241
 
252
242
  static VALUE
253
- sourcebuffer_get_source_marks_at_line (argc, argv, self)
254
- int argc;
255
- VALUE *argv;
256
- VALUE self;
243
+ sourcebuffer_get_source_marks_at_line(int argc, VALUE *argv, VALUE self)
257
244
  {
258
245
  GSList *list, *p;
259
246
  VALUE line, category;
@@ -277,10 +264,7 @@ sourcebuffer_get_source_marks_at_line (argc, argv, self)
277
264
  }
278
265
 
279
266
  static VALUE
280
- sourcebuffer_get_source_marks_at_iter (argc, argv, self)
281
- int argc;
282
- VALUE *argv;
283
- VALUE self;
267
+ sourcebuffer_get_source_marks_at_iter(int argc, VALUE *argv, VALUE self)
284
268
  {
285
269
  GSList *list, *p;
286
270
  VALUE iter, category;
@@ -304,10 +288,7 @@ sourcebuffer_get_source_marks_at_iter (argc, argv, self)
304
288
  }
305
289
 
306
290
  static VALUE
307
- sourcebuffer_remove_source_marks (argc, argv, self)
308
- int argc;
309
- VALUE *argv;
310
- VALUE self;
291
+ sourcebuffer_remove_source_marks(int argc, VALUE *argv, VALUE self)
311
292
  {
312
293
  VALUE start, end, category;
313
294
 
@@ -322,10 +303,7 @@ sourcebuffer_remove_source_marks (argc, argv, self)
322
303
  }
323
304
 
324
305
  static VALUE
325
- sourcebuffer_forward_iter_to_source_mark (argc, argv, self)
326
- int argc;
327
- VALUE *argv;
328
- VALUE self;
306
+ sourcebuffer_forward_iter_to_source_mark(int argc, VALUE *argv, VALUE self)
329
307
  {
330
308
  VALUE iter, category;
331
309
 
@@ -338,10 +316,7 @@ sourcebuffer_forward_iter_to_source_mark (argc, argv, self)
338
316
  }
339
317
 
340
318
  static VALUE
341
- sourcebuffer_backward_iter_to_source_mark (argc, argv, self)
342
- int argc;
343
- VALUE *argv;
344
- VALUE self;
319
+ sourcebuffer_backward_iter_to_source_mark(int argc, VALUE *argv, VALUE self)
345
320
  {
346
321
  VALUE iter, category;
347
322
 
@@ -356,8 +331,7 @@ sourcebuffer_backward_iter_to_source_mark (argc, argv, self)
356
331
  #endif /* HAVE_GTK_SOURCE_MARK_GET_TYPE */
357
332
 
358
333
  static VALUE
359
- sourcebuffer_ensure_highlight (self, start, end)
360
- VALUE self, start, end;
334
+ sourcebuffer_ensure_highlight(VALUE self, VALUE start, VALUE end)
361
335
  {
362
336
  gtk_source_buffer_ensure_highlight (_SELF (self), RVAL2ITR (start), RVAL2ITR (end));
363
337
 
@@ -20,10 +20,7 @@
20
20
  * Returns: locations of start and end of match.
21
21
  */
22
22
  static VALUE
23
- forward_search (argc, argv, self)
24
- int argc;
25
- VALUE *argv;
26
- VALUE self;
23
+ forward_search(int argc, VALUE *argv, VALUE self)
27
24
  {
28
25
  GtkTextIter m_start, m_end;
29
26
  VALUE str, flags, limit;
@@ -61,10 +58,7 @@ forward_search (argc, argv, self)
61
58
  * Returns: locations of start and end of match.
62
59
  */
63
60
  static VALUE
64
- backward_search (argc, argv, self)
65
- int argc;
66
- VALUE *argv;
67
- VALUE self;
61
+ backward_search(int argc, VALUE *argv, VALUE self)
68
62
  {
69
63
  GtkTextIter m_start, m_end;
70
64
  VALUE str, flags, limit;
@@ -29,8 +29,7 @@ gboolean gtk_source_language_get_hidden (GtkSourceLanguage *lang
29
29
  * Returns: the localized metadata for the given name.
30
30
  */
31
31
  static VALUE
32
- sourcelanguage_get_metadata (self, name)
33
- VALUE self, name;
32
+ sourcelanguage_get_metadata(VALUE self, VALUE name)
34
33
  {
35
34
  return
36
35
  CSTR2RVAL (gtk_source_language_get_metadata
@@ -41,8 +40,7 @@ sourcelanguage_get_metadata (self, name)
41
40
  * Returns: a list of mime types for the given language, as an array of strings.
42
41
  */
43
42
  static VALUE
44
- sourcelanguage_get_mime_types (self)
45
- VALUE self;
43
+ sourcelanguage_get_mime_types(VALUE self)
46
44
  {
47
45
  VALUE ary;
48
46
  char **types = gtk_source_language_get_mime_types (_SELF (self));
@@ -61,8 +59,7 @@ sourcelanguage_get_mime_types (self)
61
59
  * Returns: a list of globs for the given language, as an array of strings.
62
60
  */
63
61
  static VALUE
64
- sourcelanguage_get_globs (self)
65
- VALUE self;
62
+ sourcelanguage_get_globs(VALUE self)
66
63
  {
67
64
  VALUE ary;
68
65
  char **globs = gtk_source_language_get_globs (_SELF (self));
@@ -82,8 +79,7 @@ sourcelanguage_get_globs (self)
82
79
  * Returns: the localized style name of the given id.
83
80
  */
84
81
  static VALUE
85
- sourcelanguage_get_style_name (self, style_id)
86
- VALUE self, style_id;
82
+ sourcelanguage_get_style_name(VALUE self, VALUE style_id)
87
83
  {
88
84
  return
89
85
  CSTR2RVAL (gtk_source_language_get_style_name
@@ -94,8 +90,7 @@ sourcelanguage_get_style_name (self, style_id)
94
90
  * Returns: the styles defined by the language.
95
91
  */
96
92
  static VALUE
97
- sourcelanguage_get_style_ids (self)
98
- VALUE self;
93
+ sourcelanguage_get_style_ids(VALUE self)
99
94
  {
100
95
  VALUE ary;
101
96
  gchar **ids = gtk_source_language_get_style_ids (_SELF (self));
@@ -21,8 +21,7 @@
21
21
  * Returns: a newly created Gtk::SourceLanguageManager object.
22
22
  */
23
23
  static VALUE
24
- slm_new (self)
25
- VALUE self;
24
+ slm_new(VALUE self)
26
25
  {
27
26
  G_INITIALIZE (self, gtk_source_language_manager_new ());
28
27
  return Qnil;
@@ -35,8 +34,7 @@ slm_new (self)
35
34
  * Returns: a Gtk::SourceLanguageManager
36
35
  */
37
36
  static VALUE
38
- slm_get_default(self)
39
- VALUE self;
37
+ slm_get_default(VALUE self)
40
38
  {
41
39
  GtkSourceLanguageManager* slm = gtk_source_language_manager_get_default();
42
40
  GType gtype = G_TYPE_FROM_INSTANCE(slm);
@@ -58,8 +56,7 @@ slm_get_default(self)
58
56
  * Returns: self.
59
57
  */
60
58
  static VALUE
61
- slm_set_search_path (self, dirs)
62
- VALUE self, dirs;
59
+ slm_set_search_path(VALUE self, VALUE dirs)
63
60
  {
64
61
  gchar** gdirs = (gchar**)NULL;
65
62
  gint i;
@@ -89,8 +86,7 @@ slm_set_search_path (self, dirs)
89
86
  * language manager.
90
87
  */
91
88
  static VALUE
92
- slm_get_search_path (self)
93
- VALUE self;
89
+ slm_get_search_path(VALUE self)
94
90
  {
95
91
  VALUE ary;
96
92
  const gchar * const * dirs =
@@ -110,8 +106,7 @@ slm_get_search_path (self)
110
106
  * Returns: a list of languages ids for the given language manager
111
107
  */
112
108
  static VALUE
113
- slm_get_language_ids (self)
114
- VALUE self;
109
+ slm_get_language_ids(VALUE self)
115
110
  {
116
111
  VALUE ary;
117
112
  const gchar * const * ids =
@@ -138,8 +133,7 @@ slm_get_language_ids (self)
138
133
  * with the given id.
139
134
  */
140
135
  static VALUE
141
- slm_get_language (self, id)
142
- VALUE self, id;
136
+ slm_get_language(VALUE self, VALUE id)
143
137
  {
144
138
  return
145
139
  GOBJ2RVAL (gtk_source_language_manager_get_language
@@ -158,8 +152,7 @@ slm_get_language (self, id)
158
152
  * with the given filename or content_type.
159
153
  */
160
154
  static VALUE
161
- slm_guess_language (self, filename, content_type)
162
- VALUE self, filename, content_type;
155
+ slm_guess_language(VALUE self, VALUE filename, VALUE content_type)
163
156
  {
164
157
  return GOBJ2RVAL (gtk_source_language_manager_guess_language
165
158
  (_SELF (self),
@@ -24,8 +24,7 @@
24
24
  * Returns: a newly created Gtk::SourceMark object.
25
25
  */
26
26
  static VALUE
27
- sourcemark_new (self, name, category)
28
- VALUE self, name, category;
27
+ sourcemark_new(VALUE self, VALUE name, VALUE category)
29
28
  {
30
29
  G_INITIALIZE (self,
31
30
  gtk_source_mark_new (RVAL2CSTR(name), RVAL2CSTR(category)));
@@ -42,10 +41,7 @@ const gchar* gtk_source_mark_get_category (GtkSourceMark *mark);
42
41
  * Returns: the next Gtk::SourceMark after the mark.
43
42
  */
44
43
  static VALUE
45
- sourcemark_next (argc, argv, self)
46
- int argc;
47
- VALUE *argv;
48
- VALUE self;
44
+ sourcemark_next(int argc, VALUE *argv, VALUE self)
49
45
  {
50
46
  VALUE category;
51
47
 
@@ -61,10 +57,7 @@ sourcemark_next (argc, argv, self)
61
57
  * Returns: the previous Gtk::SourceMark before the mark.
62
58
  */
63
59
  static VALUE
64
- sourcemark_prev (argc, argv, self)
65
- int argc;
66
- VALUE *argv;
67
- VALUE self;
60
+ sourcemark_prev(int argc, VALUE *argv, VALUE self)
68
61
  {
69
62
  VALUE category;
70
63
 
@@ -25,8 +25,7 @@
25
25
  * Returns: the new print compositor object.
26
26
  */
27
27
  static VALUE
28
- sprintcompositor_initialize (self, val)
29
- VALUE self, val;
28
+ sprintcompositor_initialize(VALUE self, VALUE val)
30
29
  {
31
30
  if (rb_obj_is_kind_of (val, GTYPE2CLASS (GTK_TYPE_SOURCE_BUFFER))) {
32
31
  G_INITIALIZE(self,
@@ -101,68 +100,59 @@ gint gtk_source_print_compositor_get_n_pages
101
100
  */
102
101
 
103
102
  static VALUE
104
- sprintcompositor_get_top_margin(self, unit)
105
- VALUE self, unit;
103
+ sprintcompositor_get_top_margin(VALUE self, VALUE unit)
106
104
  {
107
105
  return DBL2NUM(gtk_source_print_compositor_get_top_margin(_SELF(self), RVAL2UNIT (unit)));
108
106
  }
109
107
 
110
108
  static VALUE
111
- sprintcompositor_set_top_margin(self, top, unit)
112
- VALUE self, top, unit;
109
+ sprintcompositor_set_top_margin(VALUE self, VALUE top, VALUE unit)
113
110
  {
114
111
  gtk_source_print_compositor_set_top_margin(_SELF(self), NUM2DBL(top), RVAL2UNIT (unit));
115
112
  return self;
116
113
  }
117
114
 
118
115
  static VALUE
119
- sprintcompositor_get_bottom_margin(self, unit)
120
- VALUE self, unit;
116
+ sprintcompositor_get_bottom_margin(VALUE self, VALUE unit)
121
117
  {
122
118
  return DBL2NUM(gtk_source_print_compositor_get_bottom_margin(_SELF(self), RVAL2UNIT (unit)));
123
119
  }
124
120
 
125
121
  static VALUE
126
- sprintcompositor_set_bottom_margin(self, bottom, unit)
127
- VALUE self, bottom, unit;
122
+ sprintcompositor_set_bottom_margin(VALUE self, VALUE bottom, VALUE unit)
128
123
  {
129
124
  gtk_source_print_compositor_set_bottom_margin(_SELF(self), NUM2DBL(bottom), RVAL2UNIT (unit));
130
125
  return self;
131
126
  }
132
127
 
133
128
  static VALUE
134
- sprintcompositor_get_left_margin(self, unit)
135
- VALUE self, unit;
129
+ sprintcompositor_get_left_margin(VALUE self, VALUE unit)
136
130
  {
137
131
  return DBL2NUM(gtk_source_print_compositor_get_left_margin(_SELF(self), RVAL2UNIT (unit)));
138
132
  }
139
133
 
140
134
  static VALUE
141
- sprintcompositor_set_left_margin(self, left, unit)
142
- VALUE self, left, unit;
135
+ sprintcompositor_set_left_margin(VALUE self, VALUE left, VALUE unit)
143
136
  {
144
137
  gtk_source_print_compositor_set_left_margin(_SELF(self), NUM2DBL(left), RVAL2UNIT (unit));
145
138
  return self;
146
139
  }
147
140
 
148
141
  static VALUE
149
- sprintcompositor_get_right_margin(self, unit)
150
- VALUE self, unit;
142
+ sprintcompositor_get_right_margin(VALUE self, VALUE unit)
151
143
  {
152
144
  return DBL2NUM(gtk_source_print_compositor_get_right_margin(_SELF(self), RVAL2UNIT (unit)));
153
145
  }
154
146
 
155
147
  static VALUE
156
- sprintcompositor_set_right_margin(self, right, unit)
157
- VALUE self, right, unit;
148
+ sprintcompositor_set_right_margin(VALUE self, VALUE right, VALUE unit)
158
149
  {
159
150
  gtk_source_print_compositor_set_right_margin(_SELF(self), NUM2DBL(right), RVAL2UNIT (unit));
160
151
  return self;
161
152
  }
162
153
 
163
154
  static VALUE
164
- sprintcompositor_set_header_format(self, separator, left, center, right)
165
- VALUE self, separator, left, center, right;
155
+ sprintcompositor_set_header_format(VALUE self, VALUE separator, VALUE left, VALUE center, VALUE right)
166
156
  {
167
157
  gtk_source_print_compositor_set_header_format(_SELF(self),
168
158
  RVAL2CBOOL(separator),
@@ -173,8 +163,7 @@ sprintcompositor_set_header_format(self, separator, left, center, right)
173
163
  }
174
164
 
175
165
  static VALUE
176
- sprintcompositor_set_footer_format(self, separator, left, center, right)
177
- VALUE self, separator, left, center, right;
166
+ sprintcompositor_set_footer_format(VALUE self, VALUE separator, VALUE left, VALUE center, VALUE right)
178
167
  {
179
168
  gtk_source_print_compositor_set_footer_format(_SELF(self),
180
169
  RVAL2CBOOL(separator),
@@ -185,23 +174,20 @@ sprintcompositor_set_footer_format(self, separator, left, center, right)
185
174
  }
186
175
 
187
176
  static VALUE
188
- sprintcompositor_paginate (self, context)
189
- VALUE self, context;
177
+ sprintcompositor_paginate(VALUE self, VALUE context)
190
178
  {
191
179
  return CBOOL2RVAL (gtk_source_print_compositor_paginate (_SELF (self),
192
180
  GTK_PRINT_CONTEXT (RVAL2GOBJ (context))));
193
181
  }
194
182
 
195
183
  static VALUE
196
- sprintcompositor_get_pagination_progress (self)
197
- VALUE self;
184
+ sprintcompositor_get_pagination_progress(VALUE self)
198
185
  {
199
186
  return DBL2NUM (gtk_source_print_compositor_get_pagination_progress (_SELF (self)));
200
187
  }
201
188
 
202
189
  static VALUE
203
- sprintcompositor_draw_page (self, context, page_nr)
204
- VALUE self, context, page_nr;
190
+ sprintcompositor_draw_page(VALUE self, VALUE context, VALUE page_nr)
205
191
  {
206
192
  gtk_source_print_compositor_draw_page (_SELF (self),
207
193
  GTK_PRINT_CONTEXT (RVAL2GOBJ (context)),
@@ -16,8 +16,7 @@
16
16
  #define _SELF(self) (GTK_SOURCE_STYLE(RVAL2GOBJ(self)))
17
17
 
18
18
  static VALUE
19
- sourcestyle_copy (self)
20
- VALUE self;
19
+ sourcestyle_copy(VALUE self)
21
20
  {
22
21
  return GOBJ2RVAL (gtk_source_style_copy (_SELF (self)));
23
22
  }
@@ -29,8 +29,7 @@ const gchar* gtk_source_style_scheme_get_filename
29
29
  * Returns: a list of authors for the given style scheme.
30
30
  */
31
31
  static VALUE
32
- scheme_get_authors (self)
33
- VALUE self;
32
+ scheme_get_authors(VALUE self)
34
33
  {
35
34
  VALUE ary;
36
35
  const gchar * const * authors =
@@ -54,8 +53,7 @@ scheme_get_authors (self)
54
53
  * Returns: Gtk::SourceStyle
55
54
  */
56
55
  static VALUE
57
- scheme_get_style(self, style_name)
58
- VALUE self, style_name;
56
+ scheme_get_style(VALUE self, VALUE style_name)
59
57
  {
60
58
  return GOBJ2RVAL(gtk_source_style_scheme_get_style(_SELF(self),
61
59
  RVAL2CSTR(style_name)));
@@ -21,8 +21,7 @@
21
21
  * Returns: a newly created Gtk::SourceStyleSchemeManager object.
22
22
  */
23
23
  static VALUE
24
- sssm_new (self)
25
- VALUE self;
24
+ sssm_new(VALUE self)
26
25
  {
27
26
  G_INITIALIZE (self, gtk_source_style_scheme_manager_new ());
28
27
  return Qnil;
@@ -35,8 +34,7 @@ sssm_new (self)
35
34
  * Returns: a Gtk::SourceStyleSchemeManager
36
35
  */
37
36
  static VALUE
38
- sssm_get_default(self)
39
- VALUE self;
37
+ sssm_get_default(VALUE self)
40
38
  {
41
39
  GtkSourceStyleSchemeManager* sssm = gtk_source_style_scheme_manager_get_default();
42
40
  GType gtype = G_TYPE_FROM_INSTANCE(sssm);
@@ -58,8 +56,7 @@ sssm_get_default(self)
58
56
  * Returns: self.
59
57
  */
60
58
  static VALUE
61
- sssm_set_search_path (self, dirs)
62
- VALUE self, dirs;
59
+ sssm_set_search_path(VALUE self, VALUE dirs)
63
60
  {
64
61
  gchar** gdirs = (gchar**)NULL;
65
62
  gint i;
@@ -91,8 +88,7 @@ sssm_set_search_path (self, dirs)
91
88
  * Returns: self.
92
89
  */
93
90
  static VALUE
94
- sssm_append_search_path (self, path)
95
- VALUE self, path;
91
+ sssm_append_search_path(VALUE self, VALUE path)
96
92
  {
97
93
  gtk_source_style_scheme_manager_append_search_path (_SELF (self), RVAL2CSTR(path));
98
94
  return self;
@@ -106,8 +102,7 @@ sssm_append_search_path (self, path)
106
102
  * Returns: self.
107
103
  */
108
104
  static VALUE
109
- sssm_prepend_search_path (self, path)
110
- VALUE self, path;
105
+ sssm_prepend_search_path(VALUE self, VALUE path)
111
106
  {
112
107
  gtk_source_style_scheme_manager_prepend_search_path (_SELF (self), RVAL2CSTR(path));
113
108
  return self;
@@ -118,8 +113,7 @@ sssm_prepend_search_path (self, path)
118
113
  * style scheme manager.
119
114
  */
120
115
  static VALUE
121
- sssm_get_search_path (self)
122
- VALUE self;
116
+ sssm_get_search_path(VALUE self)
123
117
  {
124
118
  VALUE ary;
125
119
  const gchar * const * dirs =
@@ -139,8 +133,7 @@ sssm_get_search_path (self)
139
133
  * Returns: a list of style scheme ids for the given style scheme manager
140
134
  */
141
135
  static VALUE
142
- sssm_get_scheme_ids (self)
143
- VALUE self;
136
+ sssm_get_scheme_ids(VALUE self)
144
137
  {
145
138
  VALUE ary;
146
139
  const gchar * const * ids =
@@ -167,8 +160,7 @@ sssm_get_scheme_ids (self)
167
160
  * associated with the given id.
168
161
  */
169
162
  static VALUE
170
- sssm_get_scheme (self, scheme_id)
171
- VALUE self, scheme_id;
163
+ sssm_get_scheme(VALUE self, VALUE scheme_id)
172
164
  {
173
165
  return
174
166
  GOBJ2RVAL (gtk_source_style_scheme_manager_get_scheme
@@ -184,8 +176,7 @@ sssm_get_scheme (self, scheme_id)
184
176
  * Returns: self.
185
177
  */
186
178
  static VALUE
187
- sssm_force_rescan (self)
188
- VALUE self;
179
+ sssm_force_rescan(VALUE self)
189
180
  {
190
181
  gtk_source_style_scheme_manager_force_rescan(_SELF (self));
191
182
  return self;
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtksourceview2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 377
4
+ hash: 359
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 90
9
- - 7
10
- version: 0.90.7
9
+ - 8
10
+ version: 0.90.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - The Ruby-GNOME2 Proejct Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-02 00:00:00 +09:00
18
+ date: 2011-03-04 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 377
29
+ hash: 359
30
30
  segments:
31
31
  - 0
32
32
  - 90
33
- - 7
34
- version: 0.90.7
33
+ - 8
34
+ version: 0.90.8
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: Ruby/GtkSourceView2 is a Ruby binding of gtksourceview-2.x.
@@ -51,12 +51,9 @@ files:
51
51
  - ext/gtksourceview2/gtksourceview2.def
52
52
  - ext/gtksourceview2/rbgtksourceprintcompositor.c
53
53
  - ext/gtksourceview2/rbgtksourcestyle.c
54
- - ext/gtksourceview2/ruby-gtksourceview2.pc
55
54
  - ext/gtksourceview2/rbgtksourcemain.c
56
55
  - ext/gtksourceview2/rbgtksourcemark.c
57
56
  - ext/gtksourceview2/rbgtksourcemain.h
58
- - ext/gtksourceview2/rbgtksourceview2version.h
59
- - ext/gtksourceview2/Makefile
60
57
  - ext/gtksourceview2/rbgtksourceview.c
61
58
  - ext/gtksourceview2/extconf.rb
62
59
  - ext/gtksourceview2/rbgtksourcelanguage.c
@@ -1,162 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- #### Start of system configuration section. ####
5
-
6
- srcdir = /home/kou/work/ruby/ruby-gnome2/gtksourceview2/ext/gtksourceview2
7
- topdir = /usr/lib/ruby/1.8/x86_64-linux
8
- hdrdir = $(topdir)
9
- VPATH = $(srcdir):$(topdir):$(hdrdir)
10
- exec_prefix = $(prefix)
11
- prefix = $(DESTDIR)/usr
12
- sharedstatedir = $(prefix)/com
13
- mandir = $(prefix)/share/man
14
- psdir = $(docdir)
15
- oldincludedir = $(DESTDIR)/usr/include
16
- localedir = $(datarootdir)/locale
17
- bindir = $(exec_prefix)/bin
18
- libexecdir = $(prefix)/lib/ruby1.8
19
- sitedir = $(DESTDIR)/usr/local/lib/site_ruby
20
- htmldir = $(docdir)
21
- vendorarchdir = $(vendorlibdir)/$(sitearch)
22
- includedir = $(prefix)/include
23
- infodir = $(prefix)/share/info
24
- vendorlibdir = $(vendordir)/$(ruby_version)
25
- sysconfdir = $(DESTDIR)/etc
26
- libdir = $(exec_prefix)/lib
27
- sbindir = $(exec_prefix)/sbin
28
- rubylibdir = $(libdir)/ruby/$(ruby_version)
29
- docdir = $(datarootdir)/doc/$(PACKAGE)
30
- dvidir = $(docdir)
31
- vendordir = $(libdir)/ruby/vendor_ruby
32
- datarootdir = $(prefix)/share
33
- pdfdir = $(docdir)
34
- archdir = $(rubylibdir)/$(arch)
35
- sitearchdir = $(sitelibdir)/$(sitearch)
36
- datadir = $(datarootdir)
37
- localstatedir = $(DESTDIR)/var
38
- sitelibdir = $(sitedir)/$(ruby_version)
39
-
40
- CC = gcc
41
- LIBRUBY = $(LIBRUBY_SO)
42
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
43
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
44
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
45
-
46
- RUBY_EXTCONF_H =
47
- CFLAGS = -fPIC -fno-strict-aliasing -g -g -O2 -fPIC $(cflags) -Wall -I/usr/include/gtksourceview-2.0 -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -pthread
48
- INCFLAGS = -I. -I/home/kou/work/ruby/ruby-gnome2/gtk2/ext/gtk2 -I/home/kou/work/ruby/ruby-gnome2/gtk2/ext/gtk2 -I/home/kou/work/ruby/ruby-gnome2/gtk2/ext/gtk2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/ruby-gnome2/gtksourceview2/ext/gtksourceview2
49
- DEFS =
50
- CPPFLAGS = -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_GTK_SOURCE_MARK_GET_TYPE -DHAVE_GTK_SOURCE_PRINT_COMPOSITOR_GET_TYPE -DHAVE_GTK_SOURCE_VIEW_GET_MARK_CATEGORY_BACKGROUND -DHAVE_GTK_SOURCE_LANGUAGE_MANAGER_GUESS_LANGUAGE -DRUBY_GTKSOURCEVIEW2_COMPILATION
51
- CXXFLAGS = $(CFLAGS)
52
- ldflags = -L. -rdynamic -Wl,-export-dynamic -pthread
53
- dldflags =
54
- archflag =
55
- DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
56
- LDSHARED = $(CC) -shared
57
- AR = ar
58
- EXEEXT =
59
-
60
- RUBY_INSTALL_NAME = ruby1.8
61
- RUBY_SO_NAME = ruby1.8
62
- arch = x86_64-linux
63
- sitearch = x86_64-linux
64
- ruby_version = 1.8
65
- ruby = /usr/bin/ruby1.8
66
- RUBY = $(ruby)
67
- RM = rm -f
68
- MAKEDIRS = mkdir -p
69
- INSTALL = /usr/bin/install -c
70
- INSTALL_PROG = $(INSTALL) -m 0755
71
- INSTALL_DATA = $(INSTALL) -m 644
72
- COPY = cp
73
-
74
- #### End of system configuration section. ####
75
-
76
- preload =
77
-
78
- libpath = . $(libdir)
79
- LIBPATH = -L. -L$(libdir)
80
- DEFFILE =
81
-
82
- CLEANFILES = mkmf.log
83
- DISTCLEANFILES = rbgtksourceview2version.h
84
-
85
- extout =
86
- extout_prefix =
87
- target_prefix =
88
- LOCAL_LIBS =
89
- LIBS = $(LIBRUBYARG_SHARED) -lgtksourceview-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -lpango-1.0 -lpangocairo-1.0 -lcairo -lgio-2.0 -latk-1.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lpthread -lrt -ldl -lcrypt -lm -lc
90
- SRCS = rbgtksourceprintcompositor.c rbgtksourcestyle.c rbgtksourcemain.c rbgtksourcemark.c rbgtksourceview.c rbgtksourcelanguage.c rbgtksourcestylescheme.c rbgtksourcelanguagemanager.c rbgtksourceiter.c rbgtksourcestyleschememanager.c rbgtksourcebuffer.c
91
- OBJS = rbgtksourceprintcompositor.o rbgtksourcestyle.o rbgtksourcemain.o rbgtksourcemark.o rbgtksourceview.o rbgtksourcelanguage.o rbgtksourcestylescheme.o rbgtksourcelanguagemanager.o rbgtksourceiter.o rbgtksourcestyleschememanager.o rbgtksourcebuffer.o
92
- TARGET = gtksourceview2
93
- DLLIB = $(TARGET).so
94
- EXTSTATIC =
95
- STATIC_LIB =
96
-
97
- BINDIR = $(bindir)
98
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
99
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
100
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
101
-
102
- TARGET_SO = $(DLLIB)
103
- CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
104
- CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
105
-
106
- all: $(DLLIB)
107
- static: $(STATIC_LIB)
108
-
109
- clean:
110
- @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
111
-
112
- distclean: clean
113
- @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
114
- @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
115
-
116
- realclean: distclean
117
- install: install-so install-rb
118
-
119
- install-so: $(RUBYARCHDIR)
120
- install-so: $(RUBYARCHDIR)/$(DLLIB)
121
- $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
122
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
123
- install-rb: pre-install-rb install-rb-default
124
- install-rb-default: pre-install-rb-default
125
- pre-install-rb: Makefile
126
- pre-install-rb-default: Makefile
127
- $(RUBYARCHDIR):
128
- $(MAKEDIRS) $@
129
-
130
- site-install: site-install-so site-install-rb
131
- site-install-so: install-so
132
- site-install-rb: install-rb
133
-
134
- .SUFFIXES: .c .m .cc .cxx .cpp .C .o
135
-
136
- .cc.o:
137
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
138
-
139
- .cxx.o:
140
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
141
-
142
- .cpp.o:
143
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
144
-
145
- .C.o:
146
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
147
-
148
- .c.o:
149
- $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
150
-
151
- $(DLLIB): $(OBJS) Makefile
152
- @-$(RM) $@
153
- $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
154
-
155
-
156
-
157
- ###
158
- install:
159
- if test -n "$(pkgconfigdir)"; then \
160
- $(MAKEDIRS) $(pkgconfigdir); \
161
- $(INSTALL_DATA) ../ruby-gtksourceview2.pc $(pkgconfigdir); \
162
- fi
@@ -1,25 +0,0 @@
1
- /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /************************************************
3
-
4
- rbgtksourceview2version.h -
5
-
6
- This file was generated by mkmf-gnome2.rb.
7
-
8
- ************************************************/
9
-
10
- #ifndef __RBGTKSOURCEVIEW2_VERSION_H__
11
- #define __RBGTKSOURCEVIEW2_VERSION_H__
12
-
13
- #define GTKSOURCEVIEW2_MAJOR_VERSION (2)
14
- #define GTKSOURCEVIEW2_MINOR_VERSION (0)
15
- #define GTKSOURCEVIEW2_MICRO_VERSION (0)
16
- #define GTKSOURCEVIEW2_TAG_VERSION (b7)
17
-
18
- #define GTKSOURCEVIEW2_CHECK_VERSION(major,minor,micro) \
19
- (GTKSOURCEVIEW2_MAJOR_VERSION > (major) || \
20
- (GTKSOURCEVIEW2_MAJOR_VERSION == (major) && GTKSOURCEVIEW2_MINOR_VERSION > (minor)) || \
21
- (GTKSOURCEVIEW2_MAJOR_VERSION == (major) && GTKSOURCEVIEW2_MINOR_VERSION == (minor) && \
22
- GTKSOURCEVIEW2_MICRO_VERSION >= (micro)))
23
-
24
-
25
- #endif /* __RBGTKSOURCEVIEW2_VERSION_H__ */
@@ -1,3 +0,0 @@
1
- Name: Ruby/GtkSourceView2
2
- Description: Ruby bindings for GTK+ 2.0 Source Editing Widget
3
- Version: 0.90.6