| 65 GtkWidget *build_info_treeview; |
65 GtkWidget *build_info_treeview; |
| 66 GtkTreeStore *build_info_store; |
66 GtkTreeStore *build_info_store; |
| 67 }; |
67 }; |
| 68 |
68 |
| 69 /****************************************************************************** |
69 /****************************************************************************** |
| |
70 * Globals |
| |
71 *****************************************************************************/ |
| |
72 static GtkWidget *about_dialog = NULL; |
| |
73 |
| |
74 /****************************************************************************** |
| 70 * Helpers |
75 * Helpers |
| 71 *****************************************************************************/ |
76 *****************************************************************************/ |
| 72 static void |
77 static void |
| 73 pidgin_about_dialog_load_application_name(PidginAboutDialog *about) { |
78 pidgin_about_dialog_load_application_name(PidginAboutDialog *about) { |
| 74 gchar *label = g_strdup_printf("%s %s", PIDGIN_NAME, VERSION); |
79 gchar *label = g_strdup_printf("%s %s", PIDGIN_NAME, VERSION); |
| 573 /****************************************************************************** |
578 /****************************************************************************** |
| 574 * Public API |
579 * Public API |
| 575 *****************************************************************************/ |
580 *****************************************************************************/ |
| 576 GtkWidget * |
581 GtkWidget * |
| 577 pidgin_about_dialog_new(void) { |
582 pidgin_about_dialog_new(void) { |
| 578 return GTK_WIDGET(g_object_new( |
583 if(GTK_IS_WIDGET(about_dialog)) { |
| |
584 return about_dialog; |
| |
585 } |
| |
586 |
| |
587 about_dialog = g_object_new( |
| 579 PIDGIN_TYPE_ABOUT_DIALOG, |
588 PIDGIN_TYPE_ABOUT_DIALOG, |
| 580 "title", "About Pidgin", |
589 "title", "About Pidgin", |
| 581 NULL |
590 NULL |
| 582 )); |
591 ); |
| 583 } |
592 |
| 584 |
593 g_object_add_weak_pointer(G_OBJECT(about_dialog), |
| |
594 (gpointer)&about_dialog); |
| |
595 |
| |
596 return about_dialog; |
| |
597 } |
| |
598 |