~ubuntu-branches/debian/stretch/glade/stretch

« back to all changes in this revision

Viewing changes to gladeui/glade-preview-template.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Emilio Pozuelo Monfort, Andreas Henriksson
  • Date: 2014-05-23 13:00:17 UTC
  • mfrom: (1.3.2)
  • Revision ID: package-import@ubuntu.com-20140523130017-7sp231ghdz55szde
Tags: 3.18.3-1
[ Emilio Pozuelo Monfort ]
* debian/rules:
  + Pass -c4 to dpkg-gensymbols so we know when new symbols are added.
* debian/libgladeui-2-6.symbols:
  + Add missing symbols.

[ Andreas Henriksson ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  gtk_widget_init_template (GTK_WIDGET (instance));
45
45
}
46
46
 
 
47
static void
 
48
template_connect_function (GtkBuilder   *builder,
 
49
                           GObject      *object,
 
50
                           const gchar  *signal_name,
 
51
                           const gchar  *handler_name,
 
52
                           GObject      *connect_object,
 
53
                           GConnectFlags flags,
 
54
                           gpointer      data)
 
55
{
 
56
  /* Ignore signal connections */
 
57
}
 
58
 
47
59
/* Need to associate the class with a template */
48
60
static void
49
61
template_class_init (gpointer g_class, gpointer user_data)
50
62
{
51
63
  TypeData *data = user_data;
52
64
  gtk_widget_class_set_template (g_class, data->template_data);
 
65
  gtk_widget_class_set_connect_func (g_class, template_connect_function, NULL, NULL);
53
66
}
54
67
 
55
68
static GQuark type_data_quark = 0;
203
216
      gpointer             user_data,
204
217
      GError             **error)
205
218
{
 
219
  gchar *escaped_text = g_markup_escape_text (text, text_len);
206
220
  ParseData *state = user_data;
207
 
  g_string_append_len (state->xml, text, text_len);
 
221
 
 
222
  g_string_append_len (state->xml, escaped_text, -1);
 
223
 
 
224
  g_free (escaped_text);
208
225
}
209
226
 
210
227
static void