| 9 #include "gtkwebview.h" |
9 #include "gtkwebview.h" |
| 10 |
10 |
| 11 #include <stdio.h> |
11 #include <stdio.h> |
| 12 |
12 |
| 13 #include "config.h" |
13 #include "config.h" |
| |
14 |
| 14 #ifdef HAVE_MESON_CONFIG |
15 #ifdef HAVE_MESON_CONFIG |
| 15 #include "meson-config.h" |
16 #include "meson-config.h" |
| 16 #else |
|
| 17 #error HAVE_MESON_CONFIG is not defined |
|
| 18 #endif |
17 #endif |
| 19 |
18 |
| 20 struct _PidginAboutDialogPrivate { |
19 struct _PidginAboutDialogPrivate { |
| 21 GtkWidget *close_button; |
20 GtkWidget *close_button; |
| 22 GtkWidget *application_name; |
21 GtkWidget *application_name; |
| 313 /* now walk through the arguments and add them */ |
312 /* now walk through the arguments and add them */ |
| 314 splits = g_strsplit(build_args, " ", -1); |
313 splits = g_strsplit(build_args, " ", -1); |
| 315 for(idx = 0; splits[idx]; idx++) { |
314 for(idx = 0; splits[idx]; idx++) { |
| 316 gchar **value_split = g_strsplit(splits[idx], "=", 2); |
315 gchar **value_split = g_strsplit(splits[idx], "=", 2); |
| 317 |
316 |
| |
317 if(value_split[0] == NULL || g_utf8_strlen(value_split[0], -1) == 0) { |
| |
318 continue; |
| |
319 } |
| |
320 |
| 318 gtk_tree_store_append(about->priv->build_info_store, &value, §ion); |
321 gtk_tree_store_append(about->priv->build_info_store, &value, §ion); |
| 319 gtk_tree_store_set( |
322 gtk_tree_store_set( |
| 320 about->priv->build_info_store, |
323 about->priv->build_info_store, |
| 321 &value, |
324 &value, |
| 322 0, value_split[0], |
325 0, value_split[0] ? value_split[0] : "", |
| 323 1, value_split[1], |
326 1, value_split[1] ? value_split[1] : "", |
| 324 -1 |
327 -1 |
| 325 ); |
328 ); |
| 326 |
329 |
| 327 g_strfreev(value_split); |
330 g_strfreev(value_split); |
| 328 } |
331 } |