[Xfce-bugs] [Bug 1132] New: XfceAboutDialog patch to add icon property getter and setter
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Sun Aug 28 15:53:22 CEST 2005
Do NOT reply to this email. To make further comments on this bug, use
the URL below:
http://bugzilla.xfce.org/show_bug.cgi?id=1132
Summary: XfceAboutDialog patch to add icon property getter and
setter
Product: Xfce
Version: 4.3.x (SVN trunk)
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: Medium
Component: general
AssignedTo: xfce-bugs at xfce.org
ReportedBy: jcfranks at tpg.com.au
An icon property getter and setter are missing. These functions are useful for
langauge bindings, something you need to be aware of know. Also it will be
consistent with the other XfceAboutDialog getters and setters.
I have included a patch that adds and uses the icon property getter and setter
functions. Benedikt said I could apply this patch but I don't have the
permissions to do this.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
diff -ru libxfcegui4/libxfcegui4/xfce_aboutdialog.c
libxfcegui4-new/libxfcegui4/xfce_aboutdialog.c
--- libxfcegui4/libxfcegui4/xfce_aboutdialog.c 2005-08-26 23:50:54.000000000 +1000
+++ libxfcegui4-new/libxfcegui4/xfce_aboutdialog.c 2005-08-27 00:06:46.000000000
+1000
@@ -664,10 +664,7 @@
priv->pixbuf = NULL;
}
- priv->pixbuf = pix;
-
- xfce_about_dialog_update_info_icon (dialog);
-
+ xfce_about_dialog_set_icon(dialog, pix);
break;
/* credits ? */
@@ -1014,30 +1011,28 @@
}
- xfce_about_info_set_program(xinfo, info->program);
- xfce_about_dialog_update_info_program (dialog);
+ xfce_about_info_set_program(xinfo, info->program);
+ xfce_about_dialog_update_info_program (dialog);
- xfce_about_info_set_version(xinfo, info->version);
- xfce_about_dialog_update_info_version (dialog);
+ xfce_about_info_set_version(xinfo, info->version);
+ xfce_about_dialog_update_info_version (dialog);
- xfce_about_info_set_description(xinfo, info->description);
- xfce_about_dialog_update_info_description (dialog);
+ xfce_about_info_set_description(xinfo, info->description);
+ xfce_about_dialog_update_info_description (dialog);
- xfce_about_info_set_copyright(xinfo, info->copyright);
- xfce_about_dialog_update_info_copyright (dialog);
+ xfce_about_info_set_copyright(xinfo, info->copyright);
+ xfce_about_dialog_update_info_copyright (dialog);
- xfce_about_info_set_license(xinfo, info->license);
- xfce_about_dialog_update_info_license (dialog);
+ xfce_about_info_set_license(xinfo, info->license);
+ xfce_about_dialog_update_info_license (dialog);
- xfce_about_info_set_homepage(xinfo, info->homepage);
- xfce_about_dialog_update_info_homepage (dialog);
+ xfce_about_info_set_homepage(xinfo, info->homepage);
+ xfce_about_dialog_update_info_homepage (dialog);
- priv->pixbuf = g_object_ref (G_OBJECT (icon));
- xfce_about_dialog_update_info_icon (dialog);
+ xfce_about_dialog_set_icon(dialog, icon);
- /*xinfo, */
- xfce_about_dialog_update_info_credits (dialog);
-
+ /*xinfo, */
+ xfce_about_dialog_update_info_credits (dialog);
return(GTK_WIDGET(dialog));
}
@@ -1121,6 +1116,13 @@
xfce_about_dialog_update_info_homepage (dialog);
}
+void xfce_about_dialog_set_icon(XfceAboutDialog* dialog, GdkPixbuf *icon)
+{
+ XfceAboutDialogPrivate *priv;
+ priv->pixbuf = g_object_ref (G_OBJECT (icon));
+ xfce_about_dialog_update_info_icon (dialog);
+}
+
void xfce_about_dialog_add_credit(XfceAboutDialog* dialog,
const gchar *name,
const gchar *mail,
@@ -1188,3 +1190,9 @@
return info->homepage;
}
+GdkPixbuf *xfce_about_dialog_get_icon(XfceAboutDialog* dialog)
+{
+ XfceAboutDialogPrivate* priv;
+ return priv->pixbuf;
+}
+
diff -ru libxfcegui4/libxfcegui4/xfce_aboutdialog.h
libxfcegui4-new/libxfcegui4/xfce_aboutdialog.h
--- libxfcegui4/libxfcegui4/xfce_aboutdialog.h 2005-08-26 23:50:54.000000000 +1000
+++ libxfcegui4-new/libxfcegui4/xfce_aboutdialog.h 2005-08-26 23:56:37.000000000
+1000
@@ -94,6 +94,7 @@
void xfce_about_dialog_set_copyright(XfceAboutDialog* dialog, const gchar *value);
void xfce_about_dialog_set_license(XfceAboutDialog* dialog, const gchar *value);
void xfce_about_dialog_set_homepage(XfceAboutDialog* dialog, const gchar *value);
+void xfce_about_dialog_set_icon(XfceAboutDialog* dialog, GdkPixbuf *icon);
void xfce_about_dialog_add_credit(XfceAboutDialog* dialog,
const gchar *name,
const gchar *mail,
@@ -105,6 +106,7 @@
const gchar *xfce_about_dialog_get_copyright(XfceAboutDialog* dialog);
const gchar *xfce_about_dialog_get_license(XfceAboutDialog* dialog);
const gchar *xfce_about_dialog_get_homepage(XfceAboutDialog* dialog);
+GdkPixbuf *xfce_about_dialog_get_icon(XfceAboutDialog* dialog);
G_END_DECLS;
--
Configure bugmail: http://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Xfce-bugs
mailing list