Mercurial > pidgin
comparison src/gtkprefs.c @ 10871:6240d7fd5b2c
[gaim-migrate @ 12558]
Make a bunch of stuff static and rename set_gaim_user_dir to
gaim_util_set_user_dir
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 25 Apr 2005 04:22:29 +0000 |
parents | 310c5e6120fb |
children | bfb3ac69cdd0 |
comparison
equal
deleted
inserted
replaced
10870:b75ce371c812 | 10871:6240d7fd5b2c |
---|---|
461 filename = g_value_get_string(&val); | 461 filename = g_value_get_string(&val); |
462 gaim_prefs_set_string("/gaim/gtk/smileys/theme", filename); | 462 gaim_prefs_set_string("/gaim/gtk/smileys/theme", filename); |
463 g_value_unset (&val); | 463 g_value_unset (&val); |
464 } | 464 } |
465 | 465 |
466 GtkTreePath *theme_refresh_theme_list() | 466 static GtkTreePath *theme_refresh_theme_list() |
467 { | 467 { |
468 GdkPixbuf *pixbuf; | 468 GdkPixbuf *pixbuf; |
469 GSList *themes; | 469 GSList *themes; |
470 GtkTreeIter iter; | 470 GtkTreeIter iter; |
471 GtkTreePath *path = NULL; | 471 GtkTreePath *path = NULL; |
516 } | 516 } |
517 | 517 |
518 return path; | 518 return path; |
519 } | 519 } |
520 | 520 |
521 void theme_install_theme(char *path, char *extn) { | 521 static void theme_install_theme(char *path, char *extn) { |
522 #ifndef _WIN32 | 522 #ifndef _WIN32 |
523 gchar *command, *escaped; | 523 gchar *command, *escaped; |
524 #endif | 524 #endif |
525 gchar *destdir; | 525 gchar *destdir; |
526 gchar *tail; | 526 gchar *tail; |
583 | 583 |
584 g_unlink(path); | 584 g_unlink(path); |
585 g_free(path); | 585 g_free(path); |
586 } | 586 } |
587 | 587 |
588 void theme_dnd_recv(GtkWidget *widget, GdkDragContext *dc, guint x, guint y, GtkSelectionData *sd, | 588 static void theme_dnd_recv(GtkWidget *widget, GdkDragContext *dc, guint x, guint y, GtkSelectionData *sd, |
589 guint info, guint t, gpointer data) { | 589 guint info, guint t, gpointer data) { |
590 gchar *name = sd->data; | 590 gchar *name = sd->data; |
591 | 591 |
592 if ((sd->length >= 0) && (sd->format == 8)) { | 592 if ((sd->length >= 0) && (sd->format == 8)) { |
593 /* Well, it looks like the drag event was cool. | 593 /* Well, it looks like the drag event was cool. |
2107 g_object_unref(icon); | 2107 g_object_unref(icon); |
2108 | 2108 |
2109 return gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); | 2109 return gtk_notebook_append_page(GTK_NOTEBOOK(prefsnotebook), page, gtk_label_new(text)); |
2110 } | 2110 } |
2111 | 2111 |
2112 void prefs_notebook_init() { | 2112 static void prefs_notebook_init() { |
2113 GtkTreeIter p, c, c2; | 2113 GtkTreeIter p, c, c2; |
2114 GList *l; | 2114 GList *l; |
2115 prefs_notebook_add_page(_("Buddy List"), NULL, list_page(), &c, &p, notebook_page++); | 2115 prefs_notebook_add_page(_("Buddy List"), NULL, list_page(), &c, &p, notebook_page++); |
2116 prefs_notebook_add_page(_("Conversations"), NULL, conv_page(), &c, &p, notebook_page++); | 2116 prefs_notebook_add_page(_("Conversations"), NULL, conv_page(), &c, &p, notebook_page++); |
2117 prefs_notebook_add_page(_("Message Text"), NULL, messages_page(), &c2, &c, notebook_page++); | 2117 prefs_notebook_add_page(_("Message Text"), NULL, messages_page(), &c2, &c, notebook_page++); |