![]() |
![]() |
![]() |
MATE UI Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Style Properties |
#include <libmateui/libmateui.h> struct MateHRef; GtkWidget * mate_href_new (const gchar *url
,const gchar *text
); void mate_href_set_url (MateHRef *href
,const gchar *url
); const gchar * mate_href_get_url (MateHRef *href
); void mate_href_set_text (MateHRef *href
,const gchar *text
); const gchar * mate_href_get_text (MateHRef *href
); void mate_href_set_label (MateHRef *href
,const gchar *label
); const gchar * mate_href_get_label (MateHRef *href
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkButton +----MateHRef
struct MateHRef;
MateHRef
is deprecated and should not be used in newly-written code.
GtkWidget * mate_href_new (const gchar *url
,const gchar *text
);
mate_href_new
is deprecated and should not be used in newly-written code.
Created a MATE href object, a label widget with a clickable action
and an associated URL. If text
is set to NULL
, url
is used as
the text for the label.
|
URL assigned to this object. |
|
Text associated with the URL. |
Returns : |
Pointer to new MATE href widget. |
void mate_href_set_url (MateHRef *href
,const gchar *url
);
mate_href_set_url
is deprecated and should not be used in newly-written code.
Sets the internal URL value within href
to the value of url
.
|
Pointer to MateHRef widget |
|
String containing the URL to be stored within href .
|
const gchar * mate_href_get_url (MateHRef *href
);
mate_href_get_url
is deprecated and should not be used in newly-written code.
Returns the pointer to the URL associated with the href
href object. Note
that the string should not be freed as it is internal memory.
|
Pointer to MateHRef widget |
Returns : |
Pointer to an internal URL string, or NULL if failure.
|
void mate_href_set_text (MateHRef *href
,const gchar *text
);
mate_href_set_text
is deprecated and should not be used in newly-written code.
Sets the internal label widget text (used to display a URL's link
text) to the value given in label
.
|
Pointer to MateHRef widget |
|
New link text for the href object. |
const gchar * mate_href_get_text (MateHRef *href
);
mate_href_get_text
is deprecated and should not be used in newly-written code.
Returns the contents of the label widget used to display the link text. Note that the string should not be freed as it points to internal memory.
|
Pointer to MateHRef widget |
Returns : |
Pointer to text contained in the label widget. |
void mate_href_set_label (MateHRef *href
,const gchar *label
);
mate_href_set_label
is deprecated and should not be used in newly-written code.
deprecated, use mate_href_set_text
|
Pointer to MateHRef widget |
|
New link text for the href object. |
const gchar * mate_href_get_label (MateHRef *href
);
mate_href_get_label
is deprecated and should not be used in newly-written code.
Deprecated, use mate_href_get_text.
|
Pointer to MateHRef widget |
Returns : |