uim/uim-gnome-build-fixes.diff

46 lines
1.5 KiB
Diff
Raw Normal View History

---
helper/toolbar-applet-gnome.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
--- a/helper/toolbar-applet-gnome.c
+++ b/helper/toolbar-applet-gnome.c
@@ -38,7 +38,6 @@
#include <stdlib.h>
#include <locale.h>
#include <panel-applet.h>
-#include <gnome.h>
#include <libgnome/libgnome.h>
#include <uim/uim.h>
@@ -155,20 +154,21 @@
const gchar *verbname)
{
GdkPixbuf *icon = NULL;
- GtkWidget *dialog;
+ GtkAboutDialog *dialog;
const gchar *authors[] = {"uim Project", NULL};
/* Feel free to put your names here translators */
gchar *translators = _("TRANSLATORS");
icon = gdk_pixbuf_new_from_file(UIM_PIXMAPSDIR "/uim-icon.png", NULL);
- dialog = gnome_about_new(_("uim Applet"), VERSION,
- "Copyright \xc2\xa9 2003-2009 uim Project.",
- _("Applet for indicating uim's status"),
- authors,
- NULL,
- strcmp("TRANSLATORS", translators) ? translators
- : NULL,
- icon);
+ dialog = gtk_about_dialog_new();
+ gtk_about_dialog_set_name(dialog, _("uim Applet"));
+ gtk_about_dialog_set_version(dialog, VERSION);
+ gtk_about_dialog_set_copyright(dialog, "Copyright \xc2\xa9 2003-2009 uim Project.");
+ gtk_about_dialog_set_comments(dialog, _("Applet for indicating uim's status"));
+ gtk_about_dialog_set_authors(dialog, authors);
+ if (strcmp("TRANSLATORS", translators))
+ gtk_about_dialog_set_translator_credits(dialog, translators);
+ gtk_about_dialog_set_logo(dialog, icon);
if (icon) {
gtk_window_set_icon(GTK_WINDOW(dialog), icon);