Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 379897 | Differences between
and this patch

Collapse All | Expand All

(-)a/gtk/gtkaboutdialog.c (-12 / +12 lines)
Lines 1025-1031 gtk_about_dialog_show (GtkWidget *widget) Link Here
1025
 *
1025
 *
1026
 * Since: 2.12
1026
 * Since: 2.12
1027
 */
1027
 */
1028
G_CONST_RETURN gchar *
1028
const gchar *
1029
gtk_about_dialog_get_program_name (GtkAboutDialog *about)
1029
gtk_about_dialog_get_program_name (GtkAboutDialog *about)
1030
{
1030
{
1031
  GtkAboutDialogPrivate *priv;
1031
  GtkAboutDialogPrivate *priv;
Lines 1105-1111 gtk_about_dialog_set_program_name (GtkAboutDialog *about, Link Here
1105
 *
1105
 *
1106
 * Since: 2.6
1106
 * Since: 2.6
1107
 */
1107
 */
1108
G_CONST_RETURN gchar *
1108
const gchar *
1109
gtk_about_dialog_get_version (GtkAboutDialog *about)
1109
gtk_about_dialog_get_version (GtkAboutDialog *about)
1110
{
1110
{
1111
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
1111
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
Lines 1153-1159 gtk_about_dialog_set_version (GtkAboutDialog *about, Link Here
1153
 *
1153
 *
1154
 * Since: 2.6
1154
 * Since: 2.6
1155
 */
1155
 */
1156
G_CONST_RETURN gchar *
1156
const gchar *
1157
gtk_about_dialog_get_copyright (GtkAboutDialog *about)
1157
gtk_about_dialog_get_copyright (GtkAboutDialog *about)
1158
{
1158
{
1159
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
1159
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
Lines 1212-1218 gtk_about_dialog_set_copyright (GtkAboutDialog *about, Link Here
1212
 *
1212
 *
1213
 * Since: 2.6
1213
 * Since: 2.6
1214
 */
1214
 */
1215
G_CONST_RETURN gchar *
1215
const gchar *
1216
gtk_about_dialog_get_comments (GtkAboutDialog *about)
1216
gtk_about_dialog_get_comments (GtkAboutDialog *about)
1217
{
1217
{
1218
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
1218
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
Lines 1269-1275 gtk_about_dialog_set_comments (GtkAboutDialog *about, Link Here
1269
 *
1269
 *
1270
 * Since: 2.6
1270
 * Since: 2.6
1271
 */
1271
 */
1272
G_CONST_RETURN gchar *
1272
const gchar *
1273
gtk_about_dialog_get_license (GtkAboutDialog *about)
1273
gtk_about_dialog_get_license (GtkAboutDialog *about)
1274
{
1274
{
1275
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
1275
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
Lines 1380-1386 gtk_about_dialog_set_wrap_license (GtkAboutDialog *about, Link Here
1380
 *
1380
 *
1381
 * Since: 2.6
1381
 * Since: 2.6
1382
 */
1382
 */
1383
G_CONST_RETURN gchar *
1383
const gchar *
1384
gtk_about_dialog_get_website (GtkAboutDialog *about)
1384
gtk_about_dialog_get_website (GtkAboutDialog *about)
1385
{
1385
{
1386
  GtkAboutDialogPrivate *priv;
1386
  GtkAboutDialogPrivate *priv;
Lines 1432-1438 gtk_about_dialog_set_website (GtkAboutDialog *about, Link Here
1432
 *
1432
 *
1433
 * Since: 2.6
1433
 * Since: 2.6
1434
 */
1434
 */
1435
G_CONST_RETURN gchar *
1435
const gchar *
1436
gtk_about_dialog_get_website_label (GtkAboutDialog *about)
1436
gtk_about_dialog_get_website_label (GtkAboutDialog *about)
1437
{
1437
{
1438
  GtkAboutDialogPrivate *priv;
1438
  GtkAboutDialogPrivate *priv;
Lines 1486-1492 gtk_about_dialog_set_website_label (GtkAboutDialog *about, Link Here
1486
 *
1486
 *
1487
 * Since: 2.6
1487
 * Since: 2.6
1488
 */
1488
 */
1489
G_CONST_RETURN gchar * G_CONST_RETURN *
1489
const gchar * const *
1490
gtk_about_dialog_get_authors (GtkAboutDialog *about)
1490
gtk_about_dialog_get_authors (GtkAboutDialog *about)
1491
{
1491
{
1492
  GtkAboutDialogPrivate *priv;
1492
  GtkAboutDialogPrivate *priv;
Lines 1541-1547 gtk_about_dialog_set_authors (GtkAboutDialog *about, Link Here
1541
 *
1541
 *
1542
 * Since: 2.6
1542
 * Since: 2.6
1543
 */
1543
 */
1544
G_CONST_RETURN gchar * G_CONST_RETURN *
1544
const gchar * const *
1545
gtk_about_dialog_get_documenters (GtkAboutDialog *about)
1545
gtk_about_dialog_get_documenters (GtkAboutDialog *about)
1546
{
1546
{
1547
  GtkAboutDialogPrivate *priv;
1547
  GtkAboutDialogPrivate *priv;
Lines 1596-1602 gtk_about_dialog_set_documenters (GtkAboutDialog *about, Link Here
1596
 *
1596
 *
1597
 * Since: 2.6
1597
 * Since: 2.6
1598
 */
1598
 */
1599
G_CONST_RETURN gchar * G_CONST_RETURN *
1599
const gchar * const *
1600
gtk_about_dialog_get_artists (GtkAboutDialog *about)
1600
gtk_about_dialog_get_artists (GtkAboutDialog *about)
1601
{
1601
{
1602
  GtkAboutDialogPrivate *priv;
1602
  GtkAboutDialogPrivate *priv;
Lines 1650-1656 gtk_about_dialog_set_artists (GtkAboutDialog *about, Link Here
1650
 *
1650
 *
1651
 * Since: 2.6
1651
 * Since: 2.6
1652
 */
1652
 */
1653
G_CONST_RETURN gchar *
1653
const gchar *
1654
gtk_about_dialog_get_translator_credits (GtkAboutDialog *about)
1654
gtk_about_dialog_get_translator_credits (GtkAboutDialog *about)
1655
{
1655
{
1656
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
1656
  g_return_val_if_fail (GTK_IS_ABOUT_DIALOG (about), NULL);
Lines 1806-1812 gtk_about_dialog_set_logo (GtkAboutDialog *about, Link Here
1806
 *
1806
 *
1807
 * Since: 2.6
1807
 * Since: 2.6
1808
 */
1808
 */
1809
G_CONST_RETURN gchar *
1809
const gchar *
1810
gtk_about_dialog_get_logo_icon_name (GtkAboutDialog *about)
1810
gtk_about_dialog_get_logo_icon_name (GtkAboutDialog *about)
1811
{
1811
{
1812
  GtkAboutDialogPrivate *priv;
1812
  GtkAboutDialogPrivate *priv;
(-)a/gtk/gtkaboutdialog.h (-12 / +12 lines)
Lines 112-130 GtkWidget *gtk_about_dialog_new (void); Link Here
112
void                   gtk_show_about_dialog                   (GtkWindow       *parent,
112
void                   gtk_show_about_dialog                   (GtkWindow       *parent,
113
                                                                const gchar     *first_property_name,
113
                                                                const gchar     *first_property_name,
114
                                                                ...) G_GNUC_NULL_TERMINATED;
114
                                                                ...) G_GNUC_NULL_TERMINATED;
115
G_CONST_RETURN gchar  *gtk_about_dialog_get_program_name       (GtkAboutDialog  *about);
115
const gchar *          gtk_about_dialog_get_program_name       (GtkAboutDialog  *about);
116
void                   gtk_about_dialog_set_program_name       (GtkAboutDialog  *about,
116
void                   gtk_about_dialog_set_program_name       (GtkAboutDialog  *about,
117
                                                                const gchar     *name);
117
                                                                const gchar     *name);
118
G_CONST_RETURN gchar  *gtk_about_dialog_get_version            (GtkAboutDialog  *about);
118
const gchar *          gtk_about_dialog_get_version            (GtkAboutDialog  *about);
119
void                   gtk_about_dialog_set_version            (GtkAboutDialog  *about,
119
void                   gtk_about_dialog_set_version            (GtkAboutDialog  *about,
120
                                                                const gchar     *version);
120
                                                                const gchar     *version);
121
G_CONST_RETURN gchar  *gtk_about_dialog_get_copyright          (GtkAboutDialog  *about);
121
const gchar *          gtk_about_dialog_get_copyright          (GtkAboutDialog  *about);
122
void                   gtk_about_dialog_set_copyright          (GtkAboutDialog  *about,
122
void                   gtk_about_dialog_set_copyright          (GtkAboutDialog  *about,
123
                                                                const gchar     *copyright);
123
                                                                const gchar     *copyright);
124
G_CONST_RETURN gchar  *gtk_about_dialog_get_comments           (GtkAboutDialog  *about);
124
const gchar *          gtk_about_dialog_get_comments           (GtkAboutDialog  *about);
125
void                   gtk_about_dialog_set_comments           (GtkAboutDialog  *about,
125
void                   gtk_about_dialog_set_comments           (GtkAboutDialog  *about,
126
                                                                const gchar     *comments);
126
                                                                const gchar     *comments);
127
G_CONST_RETURN gchar  *gtk_about_dialog_get_license            (GtkAboutDialog  *about);
127
const gchar *          gtk_about_dialog_get_license            (GtkAboutDialog  *about);
128
void                   gtk_about_dialog_set_license            (GtkAboutDialog  *about,
128
void                   gtk_about_dialog_set_license            (GtkAboutDialog  *about,
129
                                                                const gchar     *license);
129
                                                                const gchar     *license);
130
void                   gtk_about_dialog_set_license_type       (GtkAboutDialog  *about,
130
void                   gtk_about_dialog_set_license_type       (GtkAboutDialog  *about,
Lines 135-162 gboolean gtk_about_dialog_get_wrap_license (GtkAboutDialog Link Here
135
void                   gtk_about_dialog_set_wrap_license       (GtkAboutDialog  *about,
135
void                   gtk_about_dialog_set_wrap_license       (GtkAboutDialog  *about,
136
                                                                gboolean         wrap_license);
136
                                                                gboolean         wrap_license);
137
137
138
G_CONST_RETURN gchar  *gtk_about_dialog_get_website            (GtkAboutDialog  *about);
138
const gchar *          gtk_about_dialog_get_website            (GtkAboutDialog  *about);
139
void                   gtk_about_dialog_set_website            (GtkAboutDialog  *about,
139
void                   gtk_about_dialog_set_website            (GtkAboutDialog  *about,
140
                                                                const gchar     *website);
140
                                                                const gchar     *website);
141
G_CONST_RETURN gchar  *gtk_about_dialog_get_website_label      (GtkAboutDialog  *about);
141
const gchar *          gtk_about_dialog_get_website_label      (GtkAboutDialog  *about);
142
void                   gtk_about_dialog_set_website_label      (GtkAboutDialog  *about,
142
void                   gtk_about_dialog_set_website_label      (GtkAboutDialog  *about,
143
                                                                const gchar     *website_label);
143
                                                                const gchar     *website_label);
144
G_CONST_RETURN gchar* G_CONST_RETURN * gtk_about_dialog_get_authors            (GtkAboutDialog  *about);
144
const gchar* const *   gtk_about_dialog_get_authors            (GtkAboutDialog  *about);
145
void                   gtk_about_dialog_set_authors            (GtkAboutDialog  *about,
145
void                   gtk_about_dialog_set_authors            (GtkAboutDialog  *about,
146
                                                                const gchar    **authors);
146
                                                                const gchar    **authors);
147
G_CONST_RETURN gchar* G_CONST_RETURN * gtk_about_dialog_get_documenters        (GtkAboutDialog  *about);
147
const gchar* const *   gtk_about_dialog_get_documenters        (GtkAboutDialog  *about);
148
void                   gtk_about_dialog_set_documenters        (GtkAboutDialog  *about,
148
void                   gtk_about_dialog_set_documenters        (GtkAboutDialog  *about,
149
                                                                const gchar    **documenters);
149
                                                                const gchar    **documenters);
150
G_CONST_RETURN gchar* G_CONST_RETURN * gtk_about_dialog_get_artists            (GtkAboutDialog  *about);
150
const gchar* const *   gtk_about_dialog_get_artists            (GtkAboutDialog  *about);
151
void                   gtk_about_dialog_set_artists            (GtkAboutDialog  *about,
151
void                   gtk_about_dialog_set_artists            (GtkAboutDialog  *about,
152
                                                                const gchar    **artists);
152
                                                                const gchar    **artists);
153
G_CONST_RETURN gchar  *gtk_about_dialog_get_translator_credits (GtkAboutDialog  *about);
153
const gchar *          gtk_about_dialog_get_translator_credits (GtkAboutDialog  *about);
154
void                   gtk_about_dialog_set_translator_credits (GtkAboutDialog  *about,
154
void                   gtk_about_dialog_set_translator_credits (GtkAboutDialog  *about,
155
                                                                const gchar     *translator_credits);
155
                                                                const gchar     *translator_credits);
156
GdkPixbuf             *gtk_about_dialog_get_logo               (GtkAboutDialog  *about);
156
GdkPixbuf             *gtk_about_dialog_get_logo               (GtkAboutDialog  *about);
157
void                   gtk_about_dialog_set_logo               (GtkAboutDialog  *about,
157
void                   gtk_about_dialog_set_logo               (GtkAboutDialog  *about,
158
                                                                GdkPixbuf       *logo);
158
                                                                GdkPixbuf       *logo);
159
G_CONST_RETURN gchar  *gtk_about_dialog_get_logo_icon_name     (GtkAboutDialog  *about);
159
const gchar *          gtk_about_dialog_get_logo_icon_name     (GtkAboutDialog  *about);
160
void                   gtk_about_dialog_set_logo_icon_name     (GtkAboutDialog  *about,
160
void                   gtk_about_dialog_set_logo_icon_name     (GtkAboutDialog  *about,
161
                                                                const gchar     *icon_name);
161
                                                                const gchar     *icon_name);
162
162
(-)a/gtk/gtkaction.c (-7 / +7 lines)
Lines 995-1001 gtk_action_get_proxies (GtkAction *action) Link Here
995
 *
995
 *
996
 * Since: 2.4
996
 * Since: 2.4
997
 **/
997
 **/
998
G_CONST_RETURN gchar *
998
const gchar *
999
gtk_action_get_name (GtkAction *action)
999
gtk_action_get_name (GtkAction *action)
1000
{
1000
{
1001
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
1001
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
Lines 1292-1298 gtk_action_set_label (GtkAction *action, Link Here
1292
 *
1292
 *
1293
 * Since: 2.16
1293
 * Since: 2.16
1294
 */
1294
 */
1295
G_CONST_RETURN gchar * 
1295
const gchar *
1296
gtk_action_get_label (GtkAction *action)
1296
gtk_action_get_label (GtkAction *action)
1297
{
1297
{
1298
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
1298
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
Lines 1338-1344 gtk_action_set_short_label (GtkAction *action, Link Here
1338
 *
1338
 *
1339
 * Since: 2.16
1339
 * Since: 2.16
1340
 */
1340
 */
1341
G_CONST_RETURN gchar * 
1341
const gchar *
1342
gtk_action_get_short_label (GtkAction *action)
1342
gtk_action_get_short_label (GtkAction *action)
1343
{
1343
{
1344
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
1344
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
Lines 1470-1476 gtk_action_set_tooltip (GtkAction *action, Link Here
1470
 *
1470
 *
1471
 * Since: 2.16
1471
 * Since: 2.16
1472
 */
1472
 */
1473
G_CONST_RETURN gchar * 
1473
const gchar *
1474
gtk_action_get_tooltip (GtkAction *action)
1474
gtk_action_get_tooltip (GtkAction *action)
1475
{
1475
{
1476
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
1476
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
Lines 1528-1534 gtk_action_set_stock_id (GtkAction *action, Link Here
1528
 *
1528
 *
1529
 * Since: 2.16
1529
 * Since: 2.16
1530
 */
1530
 */
1531
G_CONST_RETURN gchar * 
1531
const gchar *
1532
gtk_action_get_stock_id (GtkAction *action)
1532
gtk_action_get_stock_id (GtkAction *action)
1533
{
1533
{
1534
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
1534
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
Lines 1570-1576 gtk_action_set_icon_name (GtkAction *action, Link Here
1570
 *
1570
 *
1571
 * Since: 2.16
1571
 * Since: 2.16
1572
 */
1572
 */
1573
G_CONST_RETURN gchar * 
1573
const gchar *
1574
gtk_action_get_icon_name (GtkAction *action)
1574
gtk_action_get_icon_name (GtkAction *action)
1575
{
1575
{
1576
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
1576
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
Lines 1687-1693 gtk_action_set_accel_path (GtkAction *action, Link Here
1687
 *   if none is set. The returned string is owned by GTK+ 
1687
 *   if none is set. The returned string is owned by GTK+ 
1688
 *   and must not be freed or modified.
1688
 *   and must not be freed or modified.
1689
 */
1689
 */
1690
G_CONST_RETURN gchar *
1690
const gchar *
1691
gtk_action_get_accel_path (GtkAction *action)
1691
gtk_action_get_accel_path (GtkAction *action)
1692
{
1692
{
1693
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
1693
  g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
(-)a/gtk/gtkaction.h (-7 / +7 lines)
Lines 90-96 GtkAction *gtk_action_new (const gchar *name, Link Here
90
						const gchar *label,
90
						const gchar *label,
91
						const gchar *tooltip,
91
						const gchar *tooltip,
92
						const gchar *stock_id);
92
						const gchar *stock_id);
93
G_CONST_RETURN gchar* gtk_action_get_name      (GtkAction     *action);
93
const gchar* gtk_action_get_name               (GtkAction     *action);
94
gboolean     gtk_action_is_sensitive           (GtkAction     *action);
94
gboolean     gtk_action_is_sensitive           (GtkAction     *action);
95
gboolean     gtk_action_get_sensitive          (GtkAction     *action);
95
gboolean     gtk_action_get_sensitive          (GtkAction     *action);
96
void         gtk_action_set_sensitive          (GtkAction     *action,
96
void         gtk_action_set_sensitive          (GtkAction     *action,
Lines 108-114 GtkWidget * gtk_action_create_menu (GtkAction *action); Link Here
108
GSList *     gtk_action_get_proxies            (GtkAction     *action);
108
GSList *     gtk_action_get_proxies            (GtkAction     *action);
109
void         gtk_action_connect_accelerator    (GtkAction     *action);
109
void         gtk_action_connect_accelerator    (GtkAction     *action);
110
void         gtk_action_disconnect_accelerator (GtkAction     *action);
110
void         gtk_action_disconnect_accelerator (GtkAction     *action);
111
G_CONST_RETURN gchar *gtk_action_get_accel_path (GtkAction     *action);
111
const gchar *gtk_action_get_accel_path         (GtkAction     *action);
112
GClosure    *gtk_action_get_accel_closure      (GtkAction     *action);
112
GClosure    *gtk_action_get_accel_closure      (GtkAction     *action);
113
void         gtk_action_block_activate         (GtkAction     *action);
113
void         gtk_action_block_activate         (GtkAction     *action);
114
void         gtk_action_unblock_activate       (GtkAction     *action);
114
void         gtk_action_unblock_activate       (GtkAction     *action);
Lines 133-154 void _gtk_action_sync_menu_visible (GtkAction *action, Link Here
133
133
134
void                  gtk_action_set_label              (GtkAction   *action,
134
void                  gtk_action_set_label              (GtkAction   *action,
135
                                                         const gchar *label);
135
                                                         const gchar *label);
136
G_CONST_RETURN gchar *gtk_action_get_label              (GtkAction   *action);
136
const gchar *         gtk_action_get_label              (GtkAction   *action);
137
void                  gtk_action_set_short_label        (GtkAction   *action,
137
void                  gtk_action_set_short_label        (GtkAction   *action,
138
                                                         const gchar *short_label);
138
                                                         const gchar *short_label);
139
G_CONST_RETURN gchar *gtk_action_get_short_label        (GtkAction   *action);
139
const gchar *         gtk_action_get_short_label        (GtkAction   *action);
140
void                  gtk_action_set_tooltip            (GtkAction   *action,
140
void                  gtk_action_set_tooltip            (GtkAction   *action,
141
                                                         const gchar *tooltip);
141
                                                         const gchar *tooltip);
142
G_CONST_RETURN gchar *gtk_action_get_tooltip            (GtkAction   *action);
142
const gchar *         gtk_action_get_tooltip            (GtkAction   *action);
143
void                  gtk_action_set_stock_id           (GtkAction   *action,
143
void                  gtk_action_set_stock_id           (GtkAction   *action,
144
                                                         const gchar *stock_id);
144
                                                         const gchar *stock_id);
145
G_CONST_RETURN gchar *gtk_action_get_stock_id           (GtkAction   *action);
145
const gchar *         gtk_action_get_stock_id           (GtkAction   *action);
146
void                  gtk_action_set_gicon              (GtkAction   *action,
146
void                  gtk_action_set_gicon              (GtkAction   *action,
147
                                                         GIcon       *icon);
147
                                                         GIcon       *icon);
148
GIcon                *gtk_action_get_gicon              (GtkAction   *action);
148
GIcon                *gtk_action_get_gicon              (GtkAction   *action);
149
void                  gtk_action_set_icon_name          (GtkAction   *action,
149
void                  gtk_action_set_icon_name          (GtkAction   *action,
150
                                                         const gchar *icon_name);
150
                                                         const gchar *icon_name);
151
G_CONST_RETURN gchar *gtk_action_get_icon_name          (GtkAction   *action);
151
const gchar *         gtk_action_get_icon_name          (GtkAction   *action);
152
void                  gtk_action_set_visible_horizontal (GtkAction   *action,
152
void                  gtk_action_set_visible_horizontal (GtkAction   *action,
153
                                                         gboolean     visible_horizontal);
153
                                                         gboolean     visible_horizontal);
154
gboolean              gtk_action_get_visible_horizontal (GtkAction   *action);
154
gboolean              gtk_action_get_visible_horizontal (GtkAction   *action);
(-)a/gtk/gtkactiongroup.c (-2 / +2 lines)
Lines 645-651 gtk_action_group_real_get_action (GtkActionGroup *self, Link Here
645
 * 
645
 * 
646
 * Since: 2.4
646
 * Since: 2.4
647
 */
647
 */
648
G_CONST_RETURN gchar *
648
const gchar *
649
gtk_action_group_get_name (GtkActionGroup *action_group)
649
gtk_action_group_get_name (GtkActionGroup *action_group)
650
{
650
{
651
  GtkActionGroupPrivate *private;
651
  GtkActionGroupPrivate *private;
Lines 1442-1448 gtk_action_group_set_translation_domain (GtkActionGroup *action_group, Link Here
1442
 *
1442
 *
1443
 * Since: 2.6
1443
 * Since: 2.6
1444
 **/
1444
 **/
1445
G_CONST_RETURN gchar *
1445
const gchar *
1446
gtk_action_group_translate_string (GtkActionGroup *action_group,
1446
gtk_action_group_translate_string (GtkActionGroup *action_group,
1447
				   const gchar    *string)
1447
				   const gchar    *string)
1448
{
1448
{
(-)a/gtk/gtkactiongroup.h (-2 / +2 lines)
Lines 160-166 struct _GtkRadioActionEntry Link Here
160
160
161
GType           gtk_action_group_get_type                (void) G_GNUC_CONST;
161
GType           gtk_action_group_get_type                (void) G_GNUC_CONST;
162
GtkActionGroup *gtk_action_group_new                     (const gchar                *name);
162
GtkActionGroup *gtk_action_group_new                     (const gchar                *name);
163
G_CONST_RETURN gchar *gtk_action_group_get_name          (GtkActionGroup             *action_group);
163
const gchar    *gtk_action_group_get_name                (GtkActionGroup             *action_group);
164
gboolean        gtk_action_group_get_sensitive           (GtkActionGroup             *action_group);
164
gboolean        gtk_action_group_get_sensitive           (GtkActionGroup             *action_group);
165
void            gtk_action_group_set_sensitive           (GtkActionGroup             *action_group,
165
void            gtk_action_group_set_sensitive           (GtkActionGroup             *action_group,
166
							  gboolean                    sensitive);
166
							  gboolean                    sensitive);
Lines 214-220 void gtk_action_group_set_translate_func (GtkActionGroup Link Here
214
							  GDestroyNotify              notify);
214
							  GDestroyNotify              notify);
215
void            gtk_action_group_set_translation_domain  (GtkActionGroup             *action_group,
215
void            gtk_action_group_set_translation_domain  (GtkActionGroup             *action_group,
216
							  const gchar                *domain);
216
							  const gchar                *domain);
217
G_CONST_RETURN gchar *gtk_action_group_translate_string  (GtkActionGroup             *action_group,
217
const gchar *   gtk_action_group_translate_string        (GtkActionGroup             *action_group,
218
  	                                                  const gchar                *string);
218
  	                                                  const gchar                *string);
219
219
220
/* Protected for use by GtkAction */
220
/* Protected for use by GtkAction */
(-)a/gtk/gtkassistant.c (-1 / +1 lines)
Lines 2089-2095 gtk_assistant_set_page_title (GtkAssistant *assistant, Link Here
2089
 *
2089
 *
2090
 * Since: 2.10
2090
 * Since: 2.10
2091
 */
2091
 */
2092
G_CONST_RETURN gchar*
2092
const gchar*
2093
gtk_assistant_get_page_title (GtkAssistant *assistant,
2093
gtk_assistant_get_page_title (GtkAssistant *assistant,
2094
                              GtkWidget    *page)
2094
                              GtkWidget    *page)
2095
{
2095
{
(-)a/gtk/gtkassistant.h (-1 / +1 lines)
Lines 151-157 GtkAssistantPageType gtk_assistant_get_page_type (GtkAssistant Link Here
151
void                  gtk_assistant_set_page_title        (GtkAssistant         *assistant,
151
void                  gtk_assistant_set_page_title        (GtkAssistant         *assistant,
152
							   GtkWidget            *page,
152
							   GtkWidget            *page,
153
							   const gchar          *title);
153
							   const gchar          *title);
154
G_CONST_RETURN gchar *gtk_assistant_get_page_title        (GtkAssistant         *assistant,
154
const gchar *         gtk_assistant_get_page_title        (GtkAssistant         *assistant,
155
							   GtkWidget            *page);
155
							   GtkWidget            *page);
156
void                  gtk_assistant_set_page_header_image (GtkAssistant         *assistant,
156
void                  gtk_assistant_set_page_header_image (GtkAssistant         *assistant,
157
							   GtkWidget            *page,
157
							   GtkWidget            *page,
(-)a/gtk/gtkbutton.c (-1 / +1 lines)
Lines 2041-2047 gtk_button_set_label (GtkButton *button, Link Here
2041
 * Return value: The text of the label widget. This string is owned
2041
 * Return value: The text of the label widget. This string is owned
2042
 * by the widget and must not be modified or freed.
2042
 * by the widget and must not be modified or freed.
2043
 **/
2043
 **/
2044
G_CONST_RETURN gchar *
2044
const gchar *
2045
gtk_button_get_label (GtkButton *button)
2045
gtk_button_get_label (GtkButton *button)
2046
{
2046
{
2047
  g_return_val_if_fail (GTK_IS_BUTTON (button), NULL);
2047
  g_return_val_if_fail (GTK_IS_BUTTON (button), NULL);
(-)a/gtk/gtkbutton.h (-1 / +1 lines)
Lines 96-102 void gtk_button_set_relief (GtkButton *button, Link Here
96
GtkReliefStyle        gtk_button_get_relief         (GtkButton      *button);
96
GtkReliefStyle        gtk_button_get_relief         (GtkButton      *button);
97
void                  gtk_button_set_label          (GtkButton      *button,
97
void                  gtk_button_set_label          (GtkButton      *button,
98
						     const gchar    *label);
98
						     const gchar    *label);
99
G_CONST_RETURN gchar *gtk_button_get_label          (GtkButton      *button);
99
const gchar *         gtk_button_get_label          (GtkButton      *button);
100
void                  gtk_button_set_use_underline  (GtkButton      *button,
100
void                  gtk_button_set_use_underline  (GtkButton      *button,
101
						     gboolean        use_underline);
101
						     gboolean        use_underline);
102
gboolean              gtk_button_get_use_underline  (GtkButton      *button);
102
gboolean              gtk_button_get_use_underline  (GtkButton      *button);
(-)a/gtk/gtkcellarea.c (-1 / +1 lines)
Lines 2376-2382 gtk_cell_area_apply_attributes (GtkCellArea *area, Link Here
2376
 *
2376
 *
2377
 * Since: 3.0
2377
 * Since: 3.0
2378
 */
2378
 */
2379
G_CONST_RETURN gchar *
2379
const gchar *
2380
gtk_cell_area_get_current_path_string (GtkCellArea *area)
2380
gtk_cell_area_get_current_path_string (GtkCellArea *area)
2381
{
2381
{
2382
  GtkCellAreaPrivate *priv;
2382
  GtkCellAreaPrivate *priv;
(-)a/gtk/gtkcellarea.h (-2 / +2 lines)
Lines 353-359 void gtk_cell_area_get_preferred_width_for_height (GtkCellArea Link Here
353
                                                                    gint                height,
353
                                                                    gint                height,
354
                                                                    gint               *minimum_width,
354
                                                                    gint               *minimum_width,
355
                                                                    gint               *natural_width);
355
                                                                    gint               *natural_width);
356
G_CONST_RETURN gchar *gtk_cell_area_get_current_path_string        (GtkCellArea        *area);
356
const gchar *         gtk_cell_area_get_current_path_string        (GtkCellArea        *area);
357
357
358
358
359
/* Attributes */
359
/* Attributes */
Lines 432-438 void gtk_cell_area_remove_focus_sibling (GtkCellArea Link Here
432
gboolean              gtk_cell_area_is_focus_sibling               (GtkCellArea          *area,
432
gboolean              gtk_cell_area_is_focus_sibling               (GtkCellArea          *area,
433
                                                                    GtkCellRenderer      *renderer,
433
                                                                    GtkCellRenderer      *renderer,
434
                                                                    GtkCellRenderer      *sibling);
434
                                                                    GtkCellRenderer      *sibling);
435
G_CONST_RETURN GList *gtk_cell_area_get_focus_siblings             (GtkCellArea          *area,
435
const GList *         gtk_cell_area_get_focus_siblings             (GtkCellArea          *area,
436
                                                                    GtkCellRenderer      *renderer);
436
                                                                    GtkCellRenderer      *renderer);
437
GtkCellRenderer      *gtk_cell_area_get_focus_from_sibling         (GtkCellArea          *area,
437
GtkCellRenderer      *gtk_cell_area_get_focus_from_sibling         (GtkCellArea          *area,
438
                                                                    GtkCellRenderer      *renderer);
438
                                                                    GtkCellRenderer      *renderer);
(-)a/gtk/gtkcolorbutton.c (-1 / +1 lines)
Lines 897-903 gtk_color_button_set_title (GtkColorButton *color_button, Link Here
897
 *
897
 *
898
 * Since: 2.4
898
 * Since: 2.4
899
 */
899
 */
900
G_CONST_RETURN gchar *
900
const gchar *
901
gtk_color_button_get_title (GtkColorButton *color_button)
901
gtk_color_button_get_title (GtkColorButton *color_button)
902
{
902
{
903
  g_return_val_if_fail (GTK_IS_COLOR_BUTTON (color_button), NULL);
903
  g_return_val_if_fail (GTK_IS_COLOR_BUTTON (color_button), NULL);
(-)a/gtk/gtkcolorbutton.h (-1 / +1 lines)
Lines 93-99 void gtk_color_button_get_rgba (GtkColorButton *color_button, Link Here
93
                                            GdkRGBA        *rgba);
93
                                            GdkRGBA        *rgba);
94
void       gtk_color_button_set_title      (GtkColorButton *color_button,
94
void       gtk_color_button_set_title      (GtkColorButton *color_button,
95
                                            const gchar    *title);
95
                                            const gchar    *title);
96
G_CONST_RETURN gchar *gtk_color_button_get_title (GtkColorButton *color_button);
96
const gchar *gtk_color_button_get_title    (GtkColorButton *color_button);
97
97
98
98
99
G_END_DECLS
99
G_END_DECLS
(-)a/gtk/gtkcombobox.c (-1 / +1 lines)
Lines 4846-4852 gtk_combo_box_set_add_tearoffs (GtkComboBox *combo_box, Link Here
4846
 *
4846
 *
4847
 * Since: 2.10
4847
 * Since: 2.10
4848
 */
4848
 */
4849
G_CONST_RETURN gchar*
4849
const gchar*
4850
gtk_combo_box_get_title (GtkComboBox *combo_box)
4850
gtk_combo_box_get_title (GtkComboBox *combo_box)
4851
{
4851
{
4852
  g_return_val_if_fail (GTK_IS_COMBO_BOX (combo_box), NULL);
4852
  g_return_val_if_fail (GTK_IS_COMBO_BOX (combo_box), NULL);
(-)a/gtk/gtkcombobox.h (-2 / +2 lines)
Lines 88-95 gboolean gtk_combo_box_get_add_tearoffs (GtkComboBox *combo_box); Link Here
88
void          gtk_combo_box_set_add_tearoffs       (GtkComboBox *combo_box,
88
void          gtk_combo_box_set_add_tearoffs       (GtkComboBox *combo_box,
89
                                                    gboolean     add_tearoffs);
89
                                                    gboolean     add_tearoffs);
90
90
91
G_CONST_RETURN gchar *gtk_combo_box_get_title      (GtkComboBox *combo_box);
91
const gchar * gtk_combo_box_get_title              (GtkComboBox *combo_box);
92
void                  gtk_combo_box_set_title      (GtkComboBox *combo_box,
92
void          gtk_combo_box_set_title              (GtkComboBox *combo_box,
93
                                                    const gchar *title);
93
                                                    const gchar *title);
94
94
95
gboolean      gtk_combo_box_get_focus_on_click     (GtkComboBox *combo);
95
gboolean      gtk_combo_box_get_focus_on_click     (GtkComboBox *combo);
(-)a/gtk/gtkentry.c (-2 / +2 lines)
Lines 7105-7111 gtk_entry_get_overwrite_mode (GtkEntry *entry) Link Here
7105
 *      storage in the widget and must not be freed, modified or
7105
 *      storage in the widget and must not be freed, modified or
7106
 *      stored.
7106
 *      stored.
7107
 **/
7107
 **/
7108
G_CONST_RETURN gchar*
7108
const gchar*
7109
gtk_entry_get_text (GtkEntry *entry)
7109
gtk_entry_get_text (GtkEntry *entry)
7110
{
7110
{
7111
  g_return_val_if_fail (GTK_IS_ENTRY (entry), NULL);
7111
  g_return_val_if_fail (GTK_IS_ENTRY (entry), NULL);
Lines 7370-7376 gtk_entry_set_inner_border (GtkEntry *entry, Link Here
7370
 *
7370
 *
7371
 * Since: 2.10
7371
 * Since: 2.10
7372
 **/
7372
 **/
7373
G_CONST_RETURN GtkBorder *
7373
const GtkBorder *
7374
gtk_entry_get_inner_border (GtkEntry *entry)
7374
gtk_entry_get_inner_border (GtkEntry *entry)
7375
{
7375
{
7376
  g_return_val_if_fail (GTK_IS_ENTRY (entry), NULL);
7376
  g_return_val_if_fail (GTK_IS_ENTRY (entry), NULL);
(-)a/gtk/gtkentry.h (-4 / +4 lines)
Lines 149-157 void gtk_entry_set_has_frame (GtkEntry *entry, Link Here
149
                                                 gboolean       setting);
149
                                                 gboolean       setting);
150
gboolean   gtk_entry_get_has_frame              (GtkEntry      *entry);
150
gboolean   gtk_entry_get_has_frame              (GtkEntry      *entry);
151
151
152
void       gtk_entry_set_inner_border                (GtkEntry        *entry,
152
void             gtk_entry_set_inner_border     (GtkEntry        *entry,
153
                                                      const GtkBorder *border);
153
                                                 const GtkBorder *border);
154
G_CONST_RETURN GtkBorder* gtk_entry_get_inner_border (GtkEntry        *entry);
154
const GtkBorder* gtk_entry_get_inner_border     (GtkEntry        *entry);
155
155
156
void       gtk_entry_set_overwrite_mode         (GtkEntry      *entry,
156
void       gtk_entry_set_overwrite_mode         (GtkEntry      *entry,
157
                                                 gboolean       overwrite);
157
                                                 gboolean       overwrite);
Lines 176-182 gint gtk_entry_get_width_chars (GtkEntry *entry); Link Here
176
void       gtk_entry_set_text                   (GtkEntry      *entry,
176
void       gtk_entry_set_text                   (GtkEntry      *entry,
177
                                                 const gchar   *text);
177
                                                 const gchar   *text);
178
/* returns a reference to the text */
178
/* returns a reference to the text */
179
G_CONST_RETURN gchar* gtk_entry_get_text        (GtkEntry      *entry);
179
const gchar* gtk_entry_get_text        (GtkEntry      *entry);
180
180
181
PangoLayout* gtk_entry_get_layout               (GtkEntry      *entry);
181
PangoLayout* gtk_entry_get_layout               (GtkEntry      *entry);
182
void         gtk_entry_get_layout_offsets       (GtkEntry      *entry,
182
void         gtk_entry_get_layout_offsets       (GtkEntry      *entry,
(-)a/gtk/gtkentrybuffer.c (-1 / +1 lines)
Lines 519-525 gtk_entry_buffer_get_bytes (GtkEntryBuffer *buffer) Link Here
519
 *
519
 *
520
 * Since: 2.18
520
 * Since: 2.18
521
 **/
521
 **/
522
G_CONST_RETURN gchar*
522
const gchar*
523
gtk_entry_buffer_get_text (GtkEntryBuffer *buffer)
523
gtk_entry_buffer_get_text (GtkEntryBuffer *buffer)
524
{
524
{
525
  GtkEntryBufferClass *klass;
525
  GtkEntryBufferClass *klass;
(-)a/gtk/gtkentrybuffer.h (-1 / +1 lines)
Lines 101-107 gsize gtk_entry_buffer_get_bytes (GtkEntryBuffe Link Here
101
101
102
guint                     gtk_entry_buffer_get_length             (GtkEntryBuffer  *buffer);
102
guint                     gtk_entry_buffer_get_length             (GtkEntryBuffer  *buffer);
103
103
104
G_CONST_RETURN gchar*     gtk_entry_buffer_get_text               (GtkEntryBuffer  *buffer);
104
const gchar*              gtk_entry_buffer_get_text               (GtkEntryBuffer  *buffer);
105
105
106
void                      gtk_entry_buffer_set_text               (GtkEntryBuffer  *buffer,
106
void                      gtk_entry_buffer_set_text               (GtkEntryBuffer  *buffer,
107
                                                                   const gchar     *chars,
107
                                                                   const gchar     *chars,
(-)a/gtk/gtkexpander.c (-1 / +1 lines)
Lines 1797-1803 gtk_expander_set_label (GtkExpander *expander, Link Here
1797
 *
1797
 *
1798
 * Since: 2.4
1798
 * Since: 2.4
1799
 */
1799
 */
1800
G_CONST_RETURN char *
1800
const char *
1801
gtk_expander_get_label (GtkExpander *expander)
1801
gtk_expander_get_label (GtkExpander *expander)
1802
{
1802
{
1803
  GtkExpanderPrivate *priv;
1803
  GtkExpanderPrivate *priv;
(-)a/gtk/gtkexpander.h (-1 / +1 lines)
Lines 82-88 gint gtk_expander_get_spacing (GtkExpander *expander); Link Here
82
82
83
void                  gtk_expander_set_label         (GtkExpander *expander,
83
void                  gtk_expander_set_label         (GtkExpander *expander,
84
						      const gchar *label);
84
						      const gchar *label);
85
G_CONST_RETURN gchar *gtk_expander_get_label         (GtkExpander *expander);
85
const gchar *         gtk_expander_get_label         (GtkExpander *expander);
86
86
87
void                  gtk_expander_set_use_underline (GtkExpander *expander,
87
void                  gtk_expander_set_use_underline (GtkExpander *expander,
88
						      gboolean     use_underline);
88
						      gboolean     use_underline);
(-)a/gtk/gtkfilechooserbutton.c (-1 / +1 lines)
Lines 2773-2779 gtk_file_chooser_button_set_title (GtkFileChooserButton *button, Link Here
2773
 * 
2773
 * 
2774
 * Since: 2.6
2774
 * Since: 2.6
2775
 **/
2775
 **/
2776
G_CONST_RETURN gchar *
2776
const gchar *
2777
gtk_file_chooser_button_get_title (GtkFileChooserButton *button)
2777
gtk_file_chooser_button_get_title (GtkFileChooserButton *button)
2778
{
2778
{
2779
  g_return_val_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button), NULL);
2779
  g_return_val_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button), NULL);
(-)a/gtk/gtkfilechooserbutton.h (-1 / +1 lines)
Lines 68-74 GType gtk_file_chooser_button_get_type (void) G_GNUC_CON Link Here
68
GtkWidget *           gtk_file_chooser_button_new              (const gchar          *title,
68
GtkWidget *           gtk_file_chooser_button_new              (const gchar          *title,
69
								GtkFileChooserAction  action);
69
								GtkFileChooserAction  action);
70
GtkWidget *           gtk_file_chooser_button_new_with_dialog  (GtkWidget            *dialog);
70
GtkWidget *           gtk_file_chooser_button_new_with_dialog  (GtkWidget            *dialog);
71
G_CONST_RETURN gchar *gtk_file_chooser_button_get_title        (GtkFileChooserButton *button);
71
const gchar *         gtk_file_chooser_button_get_title        (GtkFileChooserButton *button);
72
void                  gtk_file_chooser_button_set_title        (GtkFileChooserButton *button,
72
void                  gtk_file_chooser_button_set_title        (GtkFileChooserButton *button,
73
								const gchar          *title);
73
								const gchar          *title);
74
gint                  gtk_file_chooser_button_get_width_chars  (GtkFileChooserButton *button);
74
gint                  gtk_file_chooser_button_get_width_chars  (GtkFileChooserButton *button);
(-)a/gtk/gtkfilefilter.c (-1 / +1 lines)
Lines 404-410 gtk_file_filter_set_name (GtkFileFilter *filter, Link Here
404
 * 
404
 * 
405
 * Since: 2.4
405
 * Since: 2.4
406
 **/
406
 **/
407
G_CONST_RETURN gchar *
407
const gchar *
408
gtk_file_filter_get_name (GtkFileFilter *filter)
408
gtk_file_filter_get_name (GtkFileFilter *filter)
409
{
409
{
410
  g_return_val_if_fail (GTK_IS_FILE_FILTER (filter), NULL);
410
  g_return_val_if_fail (GTK_IS_FILE_FILTER (filter), NULL);
(-)a/gtk/gtkfilefilter.h (-1 / +1 lines)
Lines 96-102 GType gtk_file_filter_get_type (void) G_GNUC_CONST; Link Here
96
GtkFileFilter *       gtk_file_filter_new      (void);
96
GtkFileFilter *       gtk_file_filter_new      (void);
97
void                  gtk_file_filter_set_name (GtkFileFilter *filter,
97
void                  gtk_file_filter_set_name (GtkFileFilter *filter,
98
						const gchar   *name);
98
						const gchar   *name);
99
G_CONST_RETURN gchar *gtk_file_filter_get_name (GtkFileFilter *filter);
99
const gchar *         gtk_file_filter_get_name (GtkFileFilter *filter);
100
100
101
void gtk_file_filter_add_mime_type      (GtkFileFilter      *filter,
101
void gtk_file_filter_add_mime_type      (GtkFileFilter      *filter,
102
					 const gchar        *mime_type);
102
					 const gchar        *mime_type);
(-)a/gtk/gtkfontbutton.c (-2 / +2 lines)
Lines 427-433 gtk_font_button_set_title (GtkFontButton *font_button, Link Here
427
 *
427
 *
428
 * Since: 2.4
428
 * Since: 2.4
429
 */
429
 */
430
G_CONST_RETURN gchar*
430
const gchar*
431
gtk_font_button_get_title (GtkFontButton *font_button)
431
gtk_font_button_get_title (GtkFontButton *font_button)
432
{
432
{
433
  g_return_val_if_fail (GTK_IS_FONT_BUTTON (font_button), NULL);
433
  g_return_val_if_fail (GTK_IS_FONT_BUTTON (font_button), NULL);
Lines 639-645 gtk_font_button_set_show_size (GtkFontButton *font_button, Link Here
639
 *
639
 *
640
 * Since: 2.4
640
 * Since: 2.4
641
 */
641
 */
642
G_CONST_RETURN gchar *
642
const gchar *
643
gtk_font_button_get_font_name (GtkFontButton *font_button)
643
gtk_font_button_get_font_name (GtkFontButton *font_button)
644
{
644
{
645
  g_return_val_if_fail (GTK_IS_FONT_BUTTON (font_button), NULL);
645
  g_return_val_if_fail (GTK_IS_FONT_BUTTON (font_button), NULL);
(-)a/gtk/gtkfontbutton.h (-2 / +2 lines)
Lines 75-81 GType gtk_font_button_get_type (void) G_GNUC_CONST; Link Here
75
GtkWidget            *gtk_font_button_new            (void);
75
GtkWidget            *gtk_font_button_new            (void);
76
GtkWidget            *gtk_font_button_new_with_font  (const gchar   *fontname);
76
GtkWidget            *gtk_font_button_new_with_font  (const gchar   *fontname);
77
77
78
G_CONST_RETURN gchar *gtk_font_button_get_title      (GtkFontButton *font_button);
78
const gchar *         gtk_font_button_get_title      (GtkFontButton *font_button);
79
void                  gtk_font_button_set_title      (GtkFontButton *font_button,
79
void                  gtk_font_button_set_title      (GtkFontButton *font_button,
80
                                                      const gchar   *title);
80
                                                      const gchar   *title);
81
gboolean              gtk_font_button_get_use_font   (GtkFontButton *font_button);
81
gboolean              gtk_font_button_get_use_font   (GtkFontButton *font_button);
Lines 84-90 void gtk_font_button_set_use_font (GtkFontButton *font_button Link Here
84
gboolean              gtk_font_button_get_use_size   (GtkFontButton *font_button);
84
gboolean              gtk_font_button_get_use_size   (GtkFontButton *font_button);
85
void                  gtk_font_button_set_use_size   (GtkFontButton *font_button,
85
void                  gtk_font_button_set_use_size   (GtkFontButton *font_button,
86
                                                      gboolean       use_size);
86
                                                      gboolean       use_size);
87
G_CONST_RETURN gchar* gtk_font_button_get_font_name  (GtkFontButton *font_button);
87
const gchar *         gtk_font_button_get_font_name  (GtkFontButton *font_button);
88
gboolean              gtk_font_button_set_font_name  (GtkFontButton *font_button,
88
gboolean              gtk_font_button_set_font_name  (GtkFontButton *font_button,
89
                                                      const gchar   *fontname);
89
                                                      const gchar   *fontname);
90
gboolean              gtk_font_button_get_show_style (GtkFontButton *font_button);
90
gboolean              gtk_font_button_get_show_style (GtkFontButton *font_button);
(-)a/gtk/gtkfontsel.c (-2 / +2 lines)
Lines 1540-1546 gtk_font_selection_set_font_name (GtkFontSelection *fontsel, Link Here
1540
 *     This string is owned by the widget and should not be 
1540
 *     This string is owned by the widget and should not be 
1541
 *     modified or freed 
1541
 *     modified or freed 
1542
 */
1542
 */
1543
G_CONST_RETURN gchar*
1543
const gchar*
1544
gtk_font_selection_get_preview_text (GtkFontSelection *fontsel)
1544
gtk_font_selection_get_preview_text (GtkFontSelection *fontsel)
1545
{
1545
{
1546
  GtkFontSelectionPrivate *priv;
1546
  GtkFontSelectionPrivate *priv;
Lines 1823-1829 gtk_font_selection_dialog_set_font_name (GtkFontSelectionDialog *fsd, Link Here
1823
 *     This string is owned by the widget and should not be 
1823
 *     This string is owned by the widget and should not be 
1824
 *     modified or freed 
1824
 *     modified or freed 
1825
 */
1825
 */
1826
G_CONST_RETURN gchar*
1826
const gchar*
1827
gtk_font_selection_dialog_get_preview_text (GtkFontSelectionDialog *fsd)
1827
gtk_font_selection_dialog_get_preview_text (GtkFontSelectionDialog *fsd)
1828
{
1828
{
1829
  GtkFontSelectionDialogPrivate *priv;
1829
  GtkFontSelectionDialogPrivate *priv;
(-)a/gtk/gtkfontsel.h (-1 / +1 lines)
Lines 161-167 gboolean gtk_font_selection_dialog_set_font_name (GtkFontSelectionDialog * Link Here
161
161
162
/* This returns the text in the preview entry. You should copy the returned
162
/* This returns the text in the preview entry. You should copy the returned
163
   text if you need it. */
163
   text if you need it. */
164
G_CONST_RETURN gchar* 
164
const gchar*
165
          gtk_font_selection_dialog_get_preview_text   (GtkFontSelectionDialog *fsd);
165
          gtk_font_selection_dialog_get_preview_text   (GtkFontSelectionDialog *fsd);
166
166
167
/* This sets the text in the preview entry. It will be copied by the entry,
167
/* This sets the text in the preview entry. It will be copied by the entry,
(-)a/gtk/gtkframe.c (-1 / +1 lines)
Lines 393-399 gtk_frame_set_label (GtkFrame *frame, Link Here
393
 *               a #GtkLabel. This string is owned by GTK+ and
393
 *               a #GtkLabel. This string is owned by GTK+ and
394
 *               must not be modified or freed.
394
 *               must not be modified or freed.
395
 **/
395
 **/
396
G_CONST_RETURN gchar *
396
const gchar *
397
gtk_frame_get_label (GtkFrame *frame)
397
gtk_frame_get_label (GtkFrame *frame)
398
{
398
{
399
  GtkFramePrivate *priv;
399
  GtkFramePrivate *priv;
(-)a/gtk/gtkframe.h (-3 / +3 lines)
Lines 74-82 struct _GtkFrameClass Link Here
74
GType      gtk_frame_get_type         (void) G_GNUC_CONST;
74
GType      gtk_frame_get_type         (void) G_GNUC_CONST;
75
GtkWidget* gtk_frame_new              (const gchar   *label);
75
GtkWidget* gtk_frame_new              (const gchar   *label);
76
76
77
void                  gtk_frame_set_label (GtkFrame    *frame,
77
void          gtk_frame_set_label (GtkFrame    *frame,
78
					   const gchar *label);
78
                                   const gchar *label);
79
G_CONST_RETURN gchar *gtk_frame_get_label (GtkFrame    *frame);
79
const gchar * gtk_frame_get_label (GtkFrame    *frame);
80
80
81
void       gtk_frame_set_label_widget (GtkFrame      *frame,
81
void       gtk_frame_set_label_widget (GtkFrame      *frame,
82
				       GtkWidget     *label_widget);
82
				       GtkWidget     *label_widget);
(-)a/gtk/gtkiconfactory.c (-3 / +3 lines)
Lines 1070-1076 gtk_icon_size_from_name (const gchar *name) Link Here
1070
 * Gets the canonical name of the given icon size. The returned string
1070
 * Gets the canonical name of the given icon size. The returned string
1071
 * is statically allocated and should not be freed.
1071
 * is statically allocated and should not be freed.
1072
 */
1072
 */
1073
G_CONST_RETURN gchar*
1073
const gchar*
1074
gtk_icon_size_get_name (GtkIconSize  size)
1074
gtk_icon_size_get_name (GtkIconSize  size)
1075
{
1075
{
1076
  if (size >= icon_sizes_used)
1076
  if (size >= icon_sizes_used)
Lines 2109-2115 gtk_icon_source_set_pixbuf (GtkIconSource *source, Link Here
2109
 * Return value: (type filename): image filename. This string must not
2109
 * Return value: (type filename): image filename. This string must not
2110
 * be modified or freed.
2110
 * be modified or freed.
2111
 */
2111
 */
2112
G_CONST_RETURN gchar*
2112
const gchar*
2113
gtk_icon_source_get_filename (const GtkIconSource *source)
2113
gtk_icon_source_get_filename (const GtkIconSource *source)
2114
{
2114
{
2115
  g_return_val_if_fail (source != NULL, NULL);
2115
  g_return_val_if_fail (source != NULL, NULL);
Lines 2130-2136 gtk_icon_source_get_filename (const GtkIconSource *source) Link Here
2130
 *
2130
 *
2131
 * Return value: icon name. This string must not be modified or freed.
2131
 * Return value: icon name. This string must not be modified or freed.
2132
 */
2132
 */
2133
G_CONST_RETURN gchar*
2133
const gchar*
2134
gtk_icon_source_get_icon_name (const GtkIconSource *source)
2134
gtk_icon_source_get_icon_name (const GtkIconSource *source)
2135
{
2135
{
2136
  g_return_val_if_fail (source != NULL, NULL);
2136
  g_return_val_if_fail (source != NULL, NULL);
(-)a/gtk/gtkiconfactory.h (-4 / +4 lines)
Lines 109-115 GtkIconSize gtk_icon_size_register (const gchar *name, Link Here
109
void                  gtk_icon_size_register_alias (const gchar *alias,
109
void                  gtk_icon_size_register_alias (const gchar *alias,
110
                                                    GtkIconSize  target);
110
                                                    GtkIconSize  target);
111
GtkIconSize           gtk_icon_size_from_name      (const gchar *name);
111
GtkIconSize           gtk_icon_size_from_name      (const gchar *name);
112
G_CONST_RETURN gchar* gtk_icon_size_get_name       (GtkIconSize  size);
112
const gchar*          gtk_icon_size_get_name       (GtkIconSize  size);
113
113
114
/* Icon sets */
114
/* Icon sets */
115
115
Lines 153-161 void gtk_icon_source_set_icon_name (GtkIconSource *so Link Here
153
void           gtk_icon_source_set_pixbuf               (GtkIconSource       *source,
153
void           gtk_icon_source_set_pixbuf               (GtkIconSource       *source,
154
                                                         GdkPixbuf           *pixbuf);
154
                                                         GdkPixbuf           *pixbuf);
155
155
156
G_CONST_RETURN gchar* gtk_icon_source_get_filename  (const GtkIconSource *source);
156
const gchar *    gtk_icon_source_get_filename             (const GtkIconSource *source);
157
G_CONST_RETURN gchar* gtk_icon_source_get_icon_name (const GtkIconSource *source);
157
const gchar *    gtk_icon_source_get_icon_name            (const GtkIconSource *source);
158
GdkPixbuf*            gtk_icon_source_get_pixbuf    (const GtkIconSource *source);
158
GdkPixbuf*       gtk_icon_source_get_pixbuf               (const GtkIconSource *source);
159
159
160
void             gtk_icon_source_set_direction_wildcarded (GtkIconSource       *source,
160
void             gtk_icon_source_set_direction_wildcarded (GtkIconSource       *source,
161
                                                           gboolean             setting);
161
                                                           gboolean             setting);
(-)a/gtk/gtkicontheme.c (-2 / +2 lines)
Lines 2688-2694 gtk_icon_info_get_base_size (GtkIconInfo *icon_info) Link Here
2688
 *
2688
 *
2689
 * Since: 2.4
2689
 * Since: 2.4
2690
 **/
2690
 **/
2691
G_CONST_RETURN gchar *
2691
const gchar *
2692
gtk_icon_info_get_filename (GtkIconInfo *icon_info)
2692
gtk_icon_info_get_filename (GtkIconInfo *icon_info)
2693
{
2693
{
2694
  g_return_val_if_fail (icon_info != NULL, NULL);
2694
  g_return_val_if_fail (icon_info != NULL, NULL);
Lines 3564-3570 gtk_icon_info_get_attach_points (GtkIconInfo *icon_info, Link Here
3564
 *
3564
 *
3565
 * Since: 2.4
3565
 * Since: 2.4
3566
 **/
3566
 **/
3567
G_CONST_RETURN gchar *
3567
const gchar *
3568
gtk_icon_info_get_display_name (GtkIconInfo *icon_info)
3568
gtk_icon_info_get_display_name (GtkIconInfo *icon_info)
3569
{
3569
{
3570
  g_return_val_if_fail (icon_info != NULL, NULL);
3570
  g_return_val_if_fail (icon_info != NULL, NULL);
(-)a/gtk/gtkicontheme.h (-2 / +2 lines)
Lines 174-180 GtkIconInfo * gtk_icon_info_new_for_pixbuf (GtkIconTheme *icon_them Link Here
174
                                                        GdkPixbuf     *pixbuf);
174
                                                        GdkPixbuf     *pixbuf);
175
175
176
gint                  gtk_icon_info_get_base_size      (GtkIconInfo   *icon_info);
176
gint                  gtk_icon_info_get_base_size      (GtkIconInfo   *icon_info);
177
G_CONST_RETURN gchar *gtk_icon_info_get_filename       (GtkIconInfo   *icon_info);
177
const gchar *         gtk_icon_info_get_filename       (GtkIconInfo   *icon_info);
178
GdkPixbuf *           gtk_icon_info_get_builtin_pixbuf (GtkIconInfo   *icon_info);
178
GdkPixbuf *           gtk_icon_info_get_builtin_pixbuf (GtkIconInfo   *icon_info);
179
GdkPixbuf *           gtk_icon_info_load_icon          (GtkIconInfo   *icon_info,
179
GdkPixbuf *           gtk_icon_info_load_icon          (GtkIconInfo   *icon_info,
180
							GError       **error);
180
							GError       **error);
Lines 204-210 gboolean gtk_icon_info_get_embedded_rect (GtkIconInfo *icon_info Link Here
204
gboolean              gtk_icon_info_get_attach_points (GtkIconInfo    *icon_info,
204
gboolean              gtk_icon_info_get_attach_points (GtkIconInfo    *icon_info,
205
						       GdkPoint      **points,
205
						       GdkPoint      **points,
206
						       gint           *n_points);
206
						       gint           *n_points);
207
G_CONST_RETURN gchar *gtk_icon_info_get_display_name  (GtkIconInfo    *icon_info);
207
const gchar *         gtk_icon_info_get_display_name  (GtkIconInfo    *icon_info);
208
208
209
/* Non-public methods */
209
/* Non-public methods */
210
void _gtk_icon_theme_check_reload                     (GdkDisplay *display);
210
void _gtk_icon_theme_check_reload                     (GdkDisplay *display);
(-)a/gtk/gtkimage.c (-3 / +3 lines)
Lines 1259-1267 gtk_image_get_animation (GtkImage *image) Link Here
1259
 * Since: 2.6
1259
 * Since: 2.6
1260
 **/
1260
 **/
1261
void
1261
void
1262
gtk_image_get_icon_name  (GtkImage              *image,
1262
gtk_image_get_icon_name  (GtkImage     *image,
1263
			  G_CONST_RETURN gchar **icon_name,
1263
			  const gchar **icon_name,
1264
			  GtkIconSize           *size)
1264
			  GtkIconSize  *size)
1265
{
1265
{
1266
  GtkImagePrivate *priv;
1266
  GtkImagePrivate *priv;
1267
1267
(-)a/gtk/gtkimage.h (-3 / +3 lines)
Lines 154-162 void gtk_image_get_icon_set (GtkImage *image, Link Here
154
                                   GtkIconSet      **icon_set,
154
                                   GtkIconSet      **icon_set,
155
                                   GtkIconSize      *size);
155
                                   GtkIconSize      *size);
156
GdkPixbufAnimation* gtk_image_get_animation (GtkImage *image);
156
GdkPixbufAnimation* gtk_image_get_animation (GtkImage *image);
157
void       gtk_image_get_icon_name (GtkImage              *image,
157
void       gtk_image_get_icon_name (GtkImage     *image,
158
				    G_CONST_RETURN gchar **icon_name,
158
				    const gchar **icon_name,
159
				    GtkIconSize           *size);
159
				    GtkIconSize  *size);
160
void       gtk_image_get_gicon     (GtkImage              *image,
160
void       gtk_image_get_gicon     (GtkImage              *image,
161
				    GIcon                **gicon,
161
				    GIcon                **gicon,
162
				    GtkIconSize           *size);
162
				    GtkIconSize           *size);
(-)a/gtk/gtkimagemenuitem.c (-2 / +2 lines)
Lines 82-88 static void gtk_image_menu_item_toggle_size_request (GtkMenuItem *menu_ite Link Here
82
                                                      gint             *requisition);
82
                                                      gint             *requisition);
83
static void gtk_image_menu_item_set_label            (GtkMenuItem      *menu_item,
83
static void gtk_image_menu_item_set_label            (GtkMenuItem      *menu_item,
84
                                                      const gchar      *label);
84
                                                      const gchar      *label);
85
static G_CONST_RETURN gchar *gtk_image_menu_item_get_label (GtkMenuItem *menu_item);
85
static const gchar * gtk_image_menu_item_get_label   (GtkMenuItem *menu_item);
86
86
87
static void gtk_image_menu_item_forall               (GtkContainer    *container,
87
static void gtk_image_menu_item_forall               (GtkContainer    *container,
88
                                                      gboolean         include_internals,
88
                                                      gboolean         include_internals,
Lines 413-419 gtk_image_menu_item_set_label (GtkMenuItem *menu_item, Link Here
413
    }
413
    }
414
}
414
}
415
415
416
static G_CONST_RETURN gchar *
416
static const gchar *
417
gtk_image_menu_item_get_label (GtkMenuItem *menu_item)
417
gtk_image_menu_item_get_label (GtkMenuItem *menu_item)
418
{
418
{
419
  GtkImageMenuItemPrivate *priv = GTK_IMAGE_MENU_ITEM (menu_item)->priv;
419
  GtkImageMenuItemPrivate *priv = GTK_IMAGE_MENU_ITEM (menu_item)->priv;
(-)a/gtk/gtklabel.c (-3 / +3 lines)
Lines 2082-2088 gtk_label_set_label (GtkLabel *label, Link Here
2082
 * Return value: the text of the label widget. This string is
2082
 * Return value: the text of the label widget. This string is
2083
 *   owned by the widget and must not be modified or freed.
2083
 *   owned by the widget and must not be modified or freed.
2084
 **/
2084
 **/
2085
G_CONST_RETURN gchar *
2085
const gchar *
2086
gtk_label_get_label (GtkLabel *label)
2086
gtk_label_get_label (GtkLabel *label)
2087
{
2087
{
2088
  g_return_val_if_fail (GTK_IS_LABEL (label), NULL);
2088
  g_return_val_if_fail (GTK_IS_LABEL (label), NULL);
Lines 2547-2553 gtk_label_set_markup_with_mnemonic (GtkLabel *label, Link Here
2547
 * Return value: the text in the label widget. This is the internal
2547
 * Return value: the text in the label widget. This is the internal
2548
 *   string used by the label, and must not be modified.
2548
 *   string used by the label, and must not be modified.
2549
 **/
2549
 **/
2550
G_CONST_RETURN gchar *
2550
const gchar *
2551
gtk_label_get_text (GtkLabel *label)
2551
gtk_label_get_text (GtkLabel *label)
2552
{
2552
{
2553
  g_return_val_if_fail (GTK_IS_LABEL (label), NULL);
2553
  g_return_val_if_fail (GTK_IS_LABEL (label), NULL);
Lines 6469-6475 gtk_label_get_current_link (GtkLabel *label) Link Here
6469
 *
6469
 *
6470
 * Since: 2.18
6470
 * Since: 2.18
6471
 */
6471
 */
6472
G_CONST_RETURN gchar *
6472
const gchar *
6473
gtk_label_get_current_uri (GtkLabel *label)
6473
gtk_label_get_current_uri (GtkLabel *label)
6474
{
6474
{
6475
  GtkLabelLink *link;
6475
  GtkLabelLink *link;
(-)a/gtk/gtklabel.h (-3 / +3 lines)
Lines 93-105 GtkWidget* gtk_label_new (const gchar *str); Link Here
93
GtkWidget*            gtk_label_new_with_mnemonic (const gchar   *str);
93
GtkWidget*            gtk_label_new_with_mnemonic (const gchar   *str);
94
void                  gtk_label_set_text          (GtkLabel      *label,
94
void                  gtk_label_set_text          (GtkLabel      *label,
95
						   const gchar   *str);
95
						   const gchar   *str);
96
G_CONST_RETURN gchar* gtk_label_get_text          (GtkLabel      *label);
96
const gchar*          gtk_label_get_text          (GtkLabel      *label);
97
void                  gtk_label_set_attributes    (GtkLabel      *label,
97
void                  gtk_label_set_attributes    (GtkLabel      *label,
98
						   PangoAttrList *attrs);
98
						   PangoAttrList *attrs);
99
PangoAttrList        *gtk_label_get_attributes    (GtkLabel      *label);
99
PangoAttrList        *gtk_label_get_attributes    (GtkLabel      *label);
100
void                  gtk_label_set_label         (GtkLabel      *label,
100
void                  gtk_label_set_label         (GtkLabel      *label,
101
						   const gchar   *str);
101
						   const gchar   *str);
102
G_CONST_RETURN gchar *gtk_label_get_label         (GtkLabel      *label);
102
const gchar *         gtk_label_get_label         (GtkLabel      *label);
103
void                  gtk_label_set_markup        (GtkLabel      *label,
103
void                  gtk_label_set_markup        (GtkLabel      *label,
104
						   const gchar   *str);
104
						   const gchar   *str);
105
void                  gtk_label_set_use_markup    (GtkLabel      *label,
105
void                  gtk_label_set_use_markup    (GtkLabel      *label,
Lines 159-165 void gtk_label_set_single_line_mode (GtkLabel *label, Link Here
159
                                              gboolean single_line_mode);
159
                                              gboolean single_line_mode);
160
gboolean     gtk_label_get_single_line_mode  (GtkLabel *label);
160
gboolean     gtk_label_get_single_line_mode  (GtkLabel *label);
161
161
162
G_CONST_RETURN gchar *gtk_label_get_current_uri (GtkLabel *label);
162
const gchar *gtk_label_get_current_uri (GtkLabel *label);
163
void         gtk_label_set_track_visited_links  (GtkLabel *label,
163
void         gtk_label_set_track_visited_links  (GtkLabel *label,
164
                                                 gboolean  track_links);
164
                                                 gboolean  track_links);
165
gboolean     gtk_label_get_track_visited_links  (GtkLabel *label);
165
gboolean     gtk_label_get_track_visited_links  (GtkLabel *label);
(-)a/gtk/gtklinkbutton.c (-1 / +1 lines)
Lines 752-758 gtk_link_button_set_uri (GtkLinkButton *link_button, Link Here
752
 *
752
 *
753
 * Since: 2.10
753
 * Since: 2.10
754
 */
754
 */
755
G_CONST_RETURN gchar *
755
const gchar *
756
gtk_link_button_get_uri (GtkLinkButton *link_button)
756
gtk_link_button_get_uri (GtkLinkButton *link_button)
757
{
757
{
758
  g_return_val_if_fail (GTK_IS_LINK_BUTTON (link_button), NULL);
758
  g_return_val_if_fail (GTK_IS_LINK_BUTTON (link_button), NULL);
(-)a/gtk/gtklinkbutton.h (-1 / +1 lines)
Lines 87-93 GtkWidget * gtk_link_button_new (const gchar *uri); Link Here
87
GtkWidget *           gtk_link_button_new_with_label    (const gchar   *uri,
87
GtkWidget *           gtk_link_button_new_with_label    (const gchar   *uri,
88
						         const gchar   *label);
88
						         const gchar   *label);
89
89
90
G_CONST_RETURN gchar *gtk_link_button_get_uri           (GtkLinkButton *link_button);
90
const gchar *         gtk_link_button_get_uri           (GtkLinkButton *link_button);
91
void                  gtk_link_button_set_uri           (GtkLinkButton *link_button,
91
void                  gtk_link_button_set_uri           (GtkLinkButton *link_button,
92
						         const gchar   *uri);
92
						         const gchar   *uri);
93
93
(-)a/gtk/gtkmenu.c (-1 / +1 lines)
Lines 2406-2412 gtk_menu_set_title (GtkMenu *menu, Link Here
2406
 *     has no title set on it. This string is owned by GTK+
2406
 *     has no title set on it. This string is owned by GTK+
2407
 *     and should not be modified or freed.
2407
 *     and should not be modified or freed.
2408
 **/
2408
 **/
2409
G_CONST_RETURN gchar *
2409
const gchar *
2410
gtk_menu_get_title (GtkMenu *menu)
2410
gtk_menu_get_title (GtkMenu *menu)
2411
{
2411
{
2412
  g_return_val_if_fail (GTK_IS_MENU (menu), NULL);
2412
  g_return_val_if_fail (GTK_IS_MENU (menu), NULL);
(-)a/gtk/gtkmenu.h (-3 / +3 lines)
Lines 182-190 gboolean gtk_menu_get_tearoff_state (GtkMenu *menu); Link Here
182
/* This sets the window manager title for the window that
182
/* This sets the window manager title for the window that
183
 * appears when a menu is torn off
183
 * appears when a menu is torn off
184
 */
184
 */
185
void       gtk_menu_set_title             (GtkMenu             *menu,
185
void          gtk_menu_set_title          (GtkMenu             *menu,
186
					   const gchar         *title);
186
                                           const gchar         *title);
187
G_CONST_RETURN gchar *gtk_menu_get_title  (GtkMenu             *menu);
187
const gchar * gtk_menu_get_title          (GtkMenu             *menu);
188
188
189
void       gtk_menu_reorder_child         (GtkMenu             *menu,
189
void       gtk_menu_reorder_child         (GtkMenu             *menu,
190
                                           GtkWidget           *child,
190
                                           GtkWidget           *child,
(-)a/gtk/gtkmenuitem.c (-4 / +4 lines)
Lines 122-128 static gboolean gtk_menu_item_can_activate_accel (GtkWidget *widget, Link Here
122
122
123
static void gtk_real_menu_item_set_label (GtkMenuItem     *menu_item,
123
static void gtk_real_menu_item_set_label (GtkMenuItem     *menu_item,
124
                                          const gchar     *label);
124
                                          const gchar     *label);
125
static G_CONST_RETURN gchar * gtk_real_menu_item_get_label (GtkMenuItem *menu_item);
125
static const gchar * gtk_real_menu_item_get_label (GtkMenuItem *menu_item);
126
126
127
static void gtk_menu_item_get_preferred_width            (GtkWidget           *widget,
127
static void gtk_menu_item_get_preferred_width            (GtkWidget           *widget,
128
                                                          gint                *minimum_size,
128
                                                          gint                *minimum_size,
Lines 1796-1802 gtk_real_menu_item_set_label (GtkMenuItem *menu_item, Link Here
1796
    }
1796
    }
1797
}
1797
}
1798
1798
1799
static G_CONST_RETURN gchar *
1799
static const gchar *
1800
gtk_real_menu_item_get_label (GtkMenuItem *menu_item)
1800
gtk_real_menu_item_get_label (GtkMenuItem *menu_item)
1801
{
1801
{
1802
  GtkWidget *child;
1802
  GtkWidget *child;
Lines 2421-2427 gtk_menu_item_set_accel_path (GtkMenuItem *menu_item, Link Here
2421
 *
2421
 *
2422
 * Since: 2.14
2422
 * Since: 2.14
2423
 */
2423
 */
2424
G_CONST_RETURN gchar *
2424
const gchar *
2425
gtk_menu_item_get_accel_path (GtkMenuItem *menu_item)
2425
gtk_menu_item_get_accel_path (GtkMenuItem *menu_item)
2426
{
2426
{
2427
  g_return_val_if_fail (GTK_IS_MENU_ITEM (menu_item), NULL);
2427
  g_return_val_if_fail (GTK_IS_MENU_ITEM (menu_item), NULL);
Lines 2504-2510 gtk_menu_item_set_label (GtkMenuItem *menu_item, Link Here
2504
 *
2504
 *
2505
 * Since: 2.16
2505
 * Since: 2.16
2506
 */
2506
 */
2507
G_CONST_RETURN gchar *
2507
const gchar *
2508
gtk_menu_item_get_label (GtkMenuItem *menu_item)
2508
gtk_menu_item_get_label (GtkMenuItem *menu_item)
2509
{
2509
{
2510
  g_return_val_if_fail (GTK_IS_MENU_ITEM (menu_item), NULL);
2510
  g_return_val_if_fail (GTK_IS_MENU_ITEM (menu_item), NULL);
(-)a/gtk/gtkmenuitem.h (-4 / +4 lines)
Lines 76-82 struct _GtkMenuItemClass Link Here
76
                                 gint         allocation);
76
                                 gint         allocation);
77
  void (* set_label)            (GtkMenuItem *menu_item,
77
  void (* set_label)            (GtkMenuItem *menu_item,
78
                                 const gchar *label);
78
                                 const gchar *label);
79
  G_CONST_RETURN gchar *(* get_label) (GtkMenuItem *menu_item);
79
  const gchar * (* get_label)   (GtkMenuItem *menu_item);
80
80
81
  void (* select)               (GtkMenuItem *menu_item);
81
  void (* select)               (GtkMenuItem *menu_item);
82
  void (* deselect)             (GtkMenuItem *menu_item);
82
  void (* deselect)             (GtkMenuItem *menu_item);
Lines 109-119 void gtk_menu_item_set_right_justified (GtkMenuItem *menu_item, Link Here
109
gboolean   gtk_menu_item_get_right_justified  (GtkMenuItem         *menu_item);
109
gboolean   gtk_menu_item_get_right_justified  (GtkMenuItem         *menu_item);
110
void       gtk_menu_item_set_accel_path       (GtkMenuItem         *menu_item,
110
void       gtk_menu_item_set_accel_path       (GtkMenuItem         *menu_item,
111
                                               const gchar         *accel_path);
111
                                               const gchar         *accel_path);
112
G_CONST_RETURN gchar* gtk_menu_item_get_accel_path (GtkMenuItem    *menu_item);
112
const gchar * gtk_menu_item_get_accel_path    (GtkMenuItem    *menu_item);
113
113
114
void       gtk_menu_item_set_label            (GtkMenuItem         *menu_item,
114
void          gtk_menu_item_set_label         (GtkMenuItem         *menu_item,
115
                                               const gchar         *label);
115
                                               const gchar         *label);
116
G_CONST_RETURN gchar *gtk_menu_item_get_label (GtkMenuItem         *menu_item);
116
const gchar * gtk_menu_item_get_label         (GtkMenuItem         *menu_item);
117
117
118
void       gtk_menu_item_set_use_underline    (GtkMenuItem         *menu_item,
118
void       gtk_menu_item_set_use_underline    (GtkMenuItem         *menu_item,
119
                                               gboolean             setting);
119
                                               gboolean             setting);
(-)a/gtk/gtknotebook.c (-2 / +2 lines)
Lines 7516-7522 gtk_notebook_set_tab_label_text (GtkNotebook *notebook, Link Here
7516
 *     tab label widget is not a #GtkLabel. The string is owned
7516
 *     tab label widget is not a #GtkLabel. The string is owned
7517
 *     by the widget and must not be freed.
7517
 *     by the widget and must not be freed.
7518
 */
7518
 */
7519
G_CONST_RETURN gchar *
7519
const gchar *
7520
gtk_notebook_get_tab_label_text (GtkNotebook *notebook,
7520
gtk_notebook_get_tab_label_text (GtkNotebook *notebook,
7521
                                 GtkWidget   *child)
7521
                                 GtkWidget   *child)
7522
{
7522
{
Lines 7653-7659 gtk_notebook_set_menu_label_text (GtkNotebook *notebook, Link Here
7653
 *     menu label, or the menu label widget is not a #GtkLabel.
7653
 *     menu label, or the menu label widget is not a #GtkLabel.
7654
 *     The string is owned by the widget and must not be freed.
7654
 *     The string is owned by the widget and must not be freed.
7655
 */
7655
 */
7656
G_CONST_RETURN gchar *
7656
const gchar *
7657
gtk_notebook_get_menu_label_text (GtkNotebook *notebook,
7657
gtk_notebook_get_menu_label_text (GtkNotebook *notebook,
7658
                                  GtkWidget *child)
7658
                                  GtkWidget *child)
7659
{
7659
{
(-)a/gtk/gtknotebook.h (-9 / +9 lines)
Lines 212-231 GtkWidget * gtk_notebook_get_tab_label (GtkNotebook *notebook, Link Here
212
void gtk_notebook_set_tab_label           (GtkNotebook *notebook,
212
void gtk_notebook_set_tab_label           (GtkNotebook *notebook,
213
					   GtkWidget   *child,
213
					   GtkWidget   *child,
214
					   GtkWidget   *tab_label);
214
					   GtkWidget   *tab_label);
215
void gtk_notebook_set_tab_label_text      (GtkNotebook *notebook,
215
void          gtk_notebook_set_tab_label_text (GtkNotebook *notebook,
216
					   GtkWidget   *child,
216
                                               GtkWidget   *child,
217
					   const gchar *tab_text);
217
                                               const gchar *tab_text);
218
G_CONST_RETURN gchar *gtk_notebook_get_tab_label_text (GtkNotebook *notebook,
218
const gchar * gtk_notebook_get_tab_label_text (GtkNotebook *notebook,
219
						       GtkWidget   *child);
219
                                               GtkWidget   *child);
220
GtkWidget * gtk_notebook_get_menu_label   (GtkNotebook *notebook,
220
GtkWidget * gtk_notebook_get_menu_label   (GtkNotebook *notebook,
221
					   GtkWidget   *child);
221
					   GtkWidget   *child);
222
void gtk_notebook_set_menu_label          (GtkNotebook *notebook,
222
void gtk_notebook_set_menu_label          (GtkNotebook *notebook,
223
					   GtkWidget   *child,
223
					   GtkWidget   *child,
224
					   GtkWidget   *menu_label);
224
					   GtkWidget   *menu_label);
225
void gtk_notebook_set_menu_label_text     (GtkNotebook *notebook,
225
void          gtk_notebook_set_menu_label_text (GtkNotebook *notebook,
226
					   GtkWidget   *child,
226
                                                GtkWidget   *child,
227
					   const gchar *menu_text);
227
                                                const gchar *menu_text);
228
G_CONST_RETURN gchar *gtk_notebook_get_menu_label_text (GtkNotebook *notebook,
228
const gchar * gtk_notebook_get_menu_label_text (GtkNotebook *notebook,
229
							GtkWidget   *child);
229
							GtkWidget   *child);
230
void gtk_notebook_reorder_child           (GtkNotebook *notebook,
230
void gtk_notebook_reorder_child           (GtkNotebook *notebook,
231
					   GtkWidget   *child,
231
					   GtkWidget   *child,
(-)a/gtk/gtkpapersize.c (-4 / +4 lines)
Lines 516-522 gtk_paper_size_get_paper_sizes (gboolean include_custom) Link Here
516
 *
516
 *
517
 * Since: 2.10
517
 * Since: 2.10
518
 */
518
 */
519
G_CONST_RETURN gchar *
519
const gchar *
520
gtk_paper_size_get_name (GtkPaperSize *size)
520
gtk_paper_size_get_name (GtkPaperSize *size)
521
{
521
{
522
  if (size->name)
522
  if (size->name)
Lines 535-541 gtk_paper_size_get_name (GtkPaperSize *size) Link Here
535
 *
535
 *
536
 * Since: 2.10
536
 * Since: 2.10
537
 */
537
 */
538
G_CONST_RETURN gchar *
538
const gchar *
539
gtk_paper_size_get_display_name (GtkPaperSize *size)
539
gtk_paper_size_get_display_name (GtkPaperSize *size)
540
{
540
{
541
  const gchar *display_name;
541
  const gchar *display_name;
Lines 560-566 gtk_paper_size_get_display_name (GtkPaperSize *size) Link Here
560
 *
560
 *
561
 * Since: 2.10
561
 * Since: 2.10
562
 */
562
 */
563
G_CONST_RETURN gchar *
563
const gchar *
564
gtk_paper_size_get_ppd_name (GtkPaperSize *size)
564
gtk_paper_size_get_ppd_name (GtkPaperSize *size)
565
{
565
{
566
  if (size->ppd_name)
566
  if (size->ppd_name)
Lines 660-666 gtk_paper_size_set_size (GtkPaperSize *size, Link Here
660
 *
660
 *
661
 * Since: 2.10
661
 * Since: 2.10
662
 */
662
 */
663
G_CONST_RETURN gchar *
663
const gchar *
664
gtk_paper_size_get_default (void)
664
gtk_paper_size_get_default (void)
665
{
665
{
666
  char *locale, *freeme = NULL;
666
  char *locale, *freeme = NULL;
(-)a/gtk/gtkpapersize.h (-4 / +4 lines)
Lines 105-113 gboolean gtk_paper_size_is_equal (GtkPaperSize *size1, Link Here
105
GList        *gtk_paper_size_get_paper_sizes (gboolean include_custom);
105
GList        *gtk_paper_size_get_paper_sizes (gboolean include_custom);
106
106
107
/* The width is always the shortest side, measure in mm */
107
/* The width is always the shortest side, measure in mm */
108
G_CONST_RETURN gchar *gtk_paper_size_get_name         (GtkPaperSize *size);
108
const gchar *gtk_paper_size_get_name         (GtkPaperSize *size);
109
G_CONST_RETURN gchar *gtk_paper_size_get_display_name (GtkPaperSize *size);
109
const gchar *gtk_paper_size_get_display_name (GtkPaperSize *size);
110
G_CONST_RETURN gchar *gtk_paper_size_get_ppd_name     (GtkPaperSize *size);
110
const gchar *gtk_paper_size_get_ppd_name     (GtkPaperSize *size);
111
111
112
gdouble  gtk_paper_size_get_width        (GtkPaperSize *size, GtkUnit unit);
112
gdouble  gtk_paper_size_get_width        (GtkPaperSize *size, GtkUnit unit);
113
gdouble  gtk_paper_size_get_height       (GtkPaperSize *size, GtkUnit unit);
113
gdouble  gtk_paper_size_get_height       (GtkPaperSize *size, GtkUnit unit);
Lines 128-134 gdouble gtk_paper_size_get_default_left_margin (GtkPaperSize *size, Link Here
128
gdouble gtk_paper_size_get_default_right_margin  (GtkPaperSize *size,
128
gdouble gtk_paper_size_get_default_right_margin  (GtkPaperSize *size,
129
						  GtkUnit       unit);
129
						  GtkUnit       unit);
130
130
131
G_CONST_RETURN gchar *gtk_paper_size_get_default (void);
131
const gchar *gtk_paper_size_get_default (void);
132
132
133
GtkPaperSize *gtk_paper_size_new_from_key_file (GKeyFile    *key_file,
133
GtkPaperSize *gtk_paper_size_new_from_key_file (GKeyFile    *key_file,
134
					        const gchar *group_name,
134
					        const gchar *group_name,
(-)a/gtk/gtkprinter.c (-5 / +5 lines)
Lines 436-442 gtk_printer_get_backend (GtkPrinter *printer) Link Here
436
 *
436
 *
437
 * Since: 2.10
437
 * Since: 2.10
438
 */
438
 */
439
G_CONST_RETURN gchar *
439
const gchar *
440
gtk_printer_get_name (GtkPrinter *printer)
440
gtk_printer_get_name (GtkPrinter *printer)
441
{
441
{
442
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
442
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
Lines 454-460 gtk_printer_get_name (GtkPrinter *printer) Link Here
454
 *
454
 *
455
 * Since: 2.10
455
 * Since: 2.10
456
 */
456
 */
457
G_CONST_RETURN gchar *
457
const gchar *
458
gtk_printer_get_description (GtkPrinter *printer)
458
gtk_printer_get_description (GtkPrinter *printer)
459
{
459
{
460
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
460
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
Lines 492-498 gtk_printer_set_description (GtkPrinter *printer, Link Here
492
 *
492
 *
493
 * Since: 2.10
493
 * Since: 2.10
494
 */
494
 */
495
G_CONST_RETURN gchar *
495
const gchar *
496
gtk_printer_get_state_message (GtkPrinter *printer)
496
gtk_printer_get_state_message (GtkPrinter *printer)
497
{
497
{
498
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
498
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
Lines 530-536 gtk_printer_set_state_message (GtkPrinter *printer, Link Here
530
 *
530
 *
531
 * Since: 2.10
531
 * Since: 2.10
532
 */
532
 */
533
G_CONST_RETURN gchar *
533
const gchar *
534
gtk_printer_get_location (GtkPrinter *printer)
534
gtk_printer_get_location (GtkPrinter *printer)
535
{
535
{
536
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
536
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
Lines 568-574 gtk_printer_set_location (GtkPrinter *printer, Link Here
568
 *
568
 *
569
 * Since: 2.10
569
 * Since: 2.10
570
 */
570
 */
571
G_CONST_RETURN gchar * 
571
const gchar *
572
gtk_printer_get_icon_name (GtkPrinter *printer)
572
gtk_printer_get_icon_name (GtkPrinter *printer)
573
{
573
{
574
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
574
  g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
(-)a/gtk/gtkprinter.h (-5 / +5 lines)
Lines 95-105 GtkPrinter *gtk_printer_new (const gchar *nam Link Here
95
							    GtkPrintBackend *backend,
95
							    GtkPrintBackend *backend,
96
							    gboolean         virtual_);
96
							    gboolean         virtual_);
97
GtkPrintBackend         *gtk_printer_get_backend           (GtkPrinter      *printer);
97
GtkPrintBackend         *gtk_printer_get_backend           (GtkPrinter      *printer);
98
G_CONST_RETURN gchar    *gtk_printer_get_name              (GtkPrinter      *printer);
98
const gchar *            gtk_printer_get_name              (GtkPrinter      *printer);
99
G_CONST_RETURN gchar    *gtk_printer_get_state_message     (GtkPrinter      *printer);
99
const gchar *            gtk_printer_get_state_message     (GtkPrinter      *printer);
100
G_CONST_RETURN gchar    *gtk_printer_get_description       (GtkPrinter      *printer);
100
const gchar *            gtk_printer_get_description       (GtkPrinter      *printer);
101
G_CONST_RETURN gchar    *gtk_printer_get_location          (GtkPrinter      *printer);
101
const gchar *            gtk_printer_get_location          (GtkPrinter      *printer);
102
G_CONST_RETURN gchar    *gtk_printer_get_icon_name         (GtkPrinter      *printer);
102
const gchar *            gtk_printer_get_icon_name         (GtkPrinter      *printer);
103
gint                     gtk_printer_get_job_count         (GtkPrinter      *printer);
103
gint                     gtk_printer_get_job_count         (GtkPrinter      *printer);
104
gboolean                 gtk_printer_is_active             (GtkPrinter      *printer);
104
gboolean                 gtk_printer_is_active             (GtkPrinter      *printer);
105
gboolean                 gtk_printer_is_paused             (GtkPrinter      *printer);
105
gboolean                 gtk_printer_is_paused             (GtkPrinter      *printer);
(-)a/gtk/gtkprintjob.c (-1 / +1 lines)
Lines 376-382 gtk_print_job_get_printer (GtkPrintJob *job) Link Here
376
 *
376
 *
377
 * Since: 2.10
377
 * Since: 2.10
378
 */
378
 */
379
G_CONST_RETURN gchar *
379
const gchar *
380
gtk_print_job_get_title (GtkPrintJob *job)
380
gtk_print_job_get_title (GtkPrintJob *job)
381
{
381
{
382
  g_return_val_if_fail (GTK_IS_PRINT_JOB (job), NULL);
382
  g_return_val_if_fail (GTK_IS_PRINT_JOB (job), NULL);
(-)a/gtk/gtkprintjob.h (-1 / +1 lines)
Lines 85-91 GtkPrintJob *gtk_print_job_new (const gchar Link Here
85
							       GtkPageSetup             *page_setup);
85
							       GtkPageSetup             *page_setup);
86
GtkPrintSettings        *gtk_print_job_get_settings           (GtkPrintJob              *job);
86
GtkPrintSettings        *gtk_print_job_get_settings           (GtkPrintJob              *job);
87
GtkPrinter              *gtk_print_job_get_printer            (GtkPrintJob              *job);
87
GtkPrinter              *gtk_print_job_get_printer            (GtkPrintJob              *job);
88
G_CONST_RETURN gchar    *gtk_print_job_get_title              (GtkPrintJob              *job);
88
const gchar *            gtk_print_job_get_title              (GtkPrintJob              *job);
89
GtkPrintStatus           gtk_print_job_get_status             (GtkPrintJob              *job);
89
GtkPrintStatus           gtk_print_job_get_status             (GtkPrintJob              *job);
90
gboolean                 gtk_print_job_set_source_file        (GtkPrintJob              *job,
90
gboolean                 gtk_print_job_set_source_file        (GtkPrintJob              *job,
91
							       const gchar              *filename,
91
							       const gchar              *filename,
(-)a/gtk/gtkprintoperation.c (-1 / +1 lines)
Lines 1833-1839 gtk_print_operation_get_status (GtkPrintOperation *op) Link Here
1833
 *
1833
 *
1834
 * Since: 2.10
1834
 * Since: 2.10
1835
 **/
1835
 **/
1836
G_CONST_RETURN gchar *
1836
const gchar *
1837
gtk_print_operation_get_status_string (GtkPrintOperation *op)
1837
gtk_print_operation_get_status_string (GtkPrintOperation *op)
1838
{
1838
{
1839
  g_return_val_if_fail (GTK_IS_PRINT_OPERATION (op), "");
1839
  g_return_val_if_fail (GTK_IS_PRINT_OPERATION (op), "");
(-)a/gtk/gtkprintoperation.h (-1 / +1 lines)
Lines 236-242 GtkPrintOperationResult gtk_print_operation_run (GtkPrintOper Link Here
236
void                    gtk_print_operation_get_error              (GtkPrintOperation  *op,
236
void                    gtk_print_operation_get_error              (GtkPrintOperation  *op,
237
                                                                    GError            **error);
237
                                                                    GError            **error);
238
GtkPrintStatus          gtk_print_operation_get_status             (GtkPrintOperation  *op);
238
GtkPrintStatus          gtk_print_operation_get_status             (GtkPrintOperation  *op);
239
G_CONST_RETURN gchar *  gtk_print_operation_get_status_string      (GtkPrintOperation  *op);
239
const gchar *           gtk_print_operation_get_status_string      (GtkPrintOperation  *op);
240
gboolean                gtk_print_operation_is_finished            (GtkPrintOperation  *op);
240
gboolean                gtk_print_operation_is_finished            (GtkPrintOperation  *op);
241
void                    gtk_print_operation_cancel                 (GtkPrintOperation  *op);
241
void                    gtk_print_operation_cancel                 (GtkPrintOperation  *op);
242
void                    gtk_print_operation_draw_page_finish       (GtkPrintOperation  *op);
242
void                    gtk_print_operation_draw_page_finish       (GtkPrintOperation  *op);
(-)a/gtk/gtkprintsettings.c (-6 / +6 lines)
Lines 147-153 gtk_print_settings_copy (GtkPrintSettings *other) Link Here
147
 * 
147
 * 
148
 * Since: 2.10
148
 * Since: 2.10
149
 */
149
 */
150
G_CONST_RETURN gchar *        
150
const gchar *
151
gtk_print_settings_get (GtkPrintSettings *settings,
151
gtk_print_settings_get (GtkPrintSettings *settings,
152
			const gchar      *key)
152
			const gchar      *key)
153
{
153
{
Lines 502-508 gtk_print_settings_foreach (GtkPrintSettings *settings, Link Here
502
 *
502
 *
503
 * Since: 2.10
503
 * Since: 2.10
504
 */
504
 */
505
G_CONST_RETURN gchar *       
505
const gchar *
506
gtk_print_settings_get_printer (GtkPrintSettings *settings)
506
gtk_print_settings_get_printer (GtkPrintSettings *settings)
507
{
507
{
508
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_PRINTER);
508
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_PRINTER);
Lines 1518-1524 gtk_print_settings_set_page_ranges (GtkPrintSettings *settings, Link Here
1518
 *
1518
 *
1519
 * Since: 2.10
1519
 * Since: 2.10
1520
 */
1520
 */
1521
G_CONST_RETURN gchar *
1521
const gchar *
1522
gtk_print_settings_get_default_source (GtkPrintSettings *settings)
1522
gtk_print_settings_get_default_source (GtkPrintSettings *settings)
1523
{
1523
{
1524
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_DEFAULT_SOURCE);
1524
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_DEFAULT_SOURCE);
Lines 1553-1559 gtk_print_settings_set_default_source (GtkPrintSettings *settings, Link Here
1553
 *
1553
 *
1554
 * Since: 2.10
1554
 * Since: 2.10
1555
 */
1555
 */
1556
G_CONST_RETURN gchar *
1556
const gchar *
1557
gtk_print_settings_get_media_type (GtkPrintSettings *settings)
1557
gtk_print_settings_get_media_type (GtkPrintSettings *settings)
1558
{
1558
{
1559
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_MEDIA_TYPE);
1559
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_MEDIA_TYPE);
Lines 1588-1594 gtk_print_settings_set_media_type (GtkPrintSettings *settings, Link Here
1588
 *
1588
 *
1589
 * Since: 2.10
1589
 * Since: 2.10
1590
 */
1590
 */
1591
G_CONST_RETURN gchar *
1591
const gchar *
1592
gtk_print_settings_get_dither (GtkPrintSettings *settings)
1592
gtk_print_settings_get_dither (GtkPrintSettings *settings)
1593
{
1593
{
1594
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_DITHER);
1594
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_DITHER);
Lines 1652-1658 gtk_print_settings_set_finishings (GtkPrintSettings *settings, Link Here
1652
 *
1652
 *
1653
 * Since: 2.10
1653
 * Since: 2.10
1654
 */
1654
 */
1655
G_CONST_RETURN gchar *
1655
const gchar *
1656
gtk_print_settings_get_output_bin (GtkPrintSettings *settings)
1656
gtk_print_settings_get_output_bin (GtkPrintSettings *settings)
1657
{
1657
{
1658
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_OUTPUT_BIN);
1658
  return gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_OUTPUT_BIN);
(-)a/gtk/gtkprintsettings.h (-7 / +7 lines)
Lines 71-77 void gtk_print_settings_to_key_file (GtkPrintSettings Link Here
71
							      const gchar          *group_name);
71
							      const gchar          *group_name);
72
gboolean          gtk_print_settings_has_key                 (GtkPrintSettings     *settings,
72
gboolean          gtk_print_settings_has_key                 (GtkPrintSettings     *settings,
73
							      const gchar          *key);
73
							      const gchar          *key);
74
G_CONST_RETURN gchar *gtk_print_settings_get                 (GtkPrintSettings     *settings,
74
const gchar *     gtk_print_settings_get                     (GtkPrintSettings     *settings,
75
							      const gchar          *key);
75
							      const gchar          *key);
76
void              gtk_print_settings_set                     (GtkPrintSettings     *settings,
76
void              gtk_print_settings_set                     (GtkPrintSettings     *settings,
77
							      const gchar          *key,
77
							      const gchar          *key,
Lines 145-151 void gtk_print_settings_set_int (GtkPrintSettings Link Here
145
145
146
/* Helpers: */
146
/* Helpers: */
147
147
148
G_CONST_RETURN gchar *gtk_print_settings_get_printer           (GtkPrintSettings   *settings);
148
const gchar *         gtk_print_settings_get_printer           (GtkPrintSettings   *settings);
149
void                  gtk_print_settings_set_printer           (GtkPrintSettings   *settings,
149
void                  gtk_print_settings_set_printer           (GtkPrintSettings   *settings,
150
								const gchar        *printer);
150
								const gchar        *printer);
151
GtkPageOrientation    gtk_print_settings_get_orientation       (GtkPrintSettings   *settings);
151
GtkPageOrientation    gtk_print_settings_get_orientation       (GtkPrintSettings   *settings);
Lines 213-231 void gtk_print_settings_set_page_ranges (GtkPrintSettings Link Here
213
GtkPageSet            gtk_print_settings_get_page_set          (GtkPrintSettings   *settings);
213
GtkPageSet            gtk_print_settings_get_page_set          (GtkPrintSettings   *settings);
214
void                  gtk_print_settings_set_page_set          (GtkPrintSettings   *settings,
214
void                  gtk_print_settings_set_page_set          (GtkPrintSettings   *settings,
215
								GtkPageSet          page_set);
215
								GtkPageSet          page_set);
216
G_CONST_RETURN gchar *gtk_print_settings_get_default_source    (GtkPrintSettings   *settings);
216
const gchar *         gtk_print_settings_get_default_source    (GtkPrintSettings   *settings);
217
void                  gtk_print_settings_set_default_source    (GtkPrintSettings   *settings,
217
void                  gtk_print_settings_set_default_source    (GtkPrintSettings   *settings,
218
								const gchar        *default_source);
218
								const gchar        *default_source);
219
G_CONST_RETURN gchar *gtk_print_settings_get_media_type        (GtkPrintSettings   *settings);
219
const gchar *         gtk_print_settings_get_media_type        (GtkPrintSettings   *settings);
220
void                  gtk_print_settings_set_media_type        (GtkPrintSettings   *settings,
220
void                  gtk_print_settings_set_media_type        (GtkPrintSettings   *settings,
221
								const gchar        *media_type);
221
								const gchar        *media_type);
222
G_CONST_RETURN gchar *gtk_print_settings_get_dither            (GtkPrintSettings   *settings);
222
const gchar *         gtk_print_settings_get_dither            (GtkPrintSettings   *settings);
223
void                  gtk_print_settings_set_dither            (GtkPrintSettings   *settings,
223
void                  gtk_print_settings_set_dither            (GtkPrintSettings   *settings,
224
								const gchar        *dither);
224
								const gchar        *dither);
225
G_CONST_RETURN gchar *gtk_print_settings_get_finishings        (GtkPrintSettings   *settings);
225
const gchar *         gtk_print_settings_get_finishings        (GtkPrintSettings   *settings);
226
void                  gtk_print_settings_set_finishings        (GtkPrintSettings   *settings,
226
void                  gtk_print_settings_set_finishings        (GtkPrintSettings   *settings,
227
								const gchar        *finishings);
227
								const gchar        *finishings);
228
G_CONST_RETURN gchar *gtk_print_settings_get_output_bin        (GtkPrintSettings   *settings);
228
const gchar *         gtk_print_settings_get_output_bin        (GtkPrintSettings   *settings);
229
void                  gtk_print_settings_set_output_bin        (GtkPrintSettings   *settings,
229
void                  gtk_print_settings_set_output_bin        (GtkPrintSettings   *settings,
230
								const gchar        *output_bin);
230
								const gchar        *output_bin);
231
231
(-)a/gtk/gtkprogressbar.c (-1 / +1 lines)
Lines 1256-1262 gtk_progress_bar_set_inverted (GtkProgressBar *pbar, Link Here
1256
 * Return value: text, or %NULL; this string is owned by the widget
1256
 * Return value: text, or %NULL; this string is owned by the widget
1257
 * and should not be modified or freed.
1257
 * and should not be modified or freed.
1258
 **/
1258
 **/
1259
G_CONST_RETURN gchar*
1259
const gchar*
1260
gtk_progress_bar_get_text (GtkProgressBar *pbar)
1260
gtk_progress_bar_get_text (GtkProgressBar *pbar)
1261
{
1261
{
1262
  g_return_val_if_fail (GTK_IS_PROGRESS_BAR (pbar), NULL);
1262
  g_return_val_if_fail (GTK_IS_PROGRESS_BAR (pbar), NULL);
(-)a/gtk/gtkprogressbar.h (-3 / +3 lines)
Lines 81-89 void gtk_progress_bar_set_pulse_step (GtkProgressBar *pbar, Link Here
81
void       gtk_progress_bar_set_inverted         (GtkProgressBar *pbar,
81
void       gtk_progress_bar_set_inverted         (GtkProgressBar *pbar,
82
                                                  gboolean        inverted);
82
                                                  gboolean        inverted);
83
83
84
G_CONST_RETURN gchar* gtk_progress_bar_get_text       (GtkProgressBar *pbar);
84
const gchar *      gtk_progress_bar_get_text       (GtkProgressBar *pbar);
85
gdouble               gtk_progress_bar_get_fraction   (GtkProgressBar *pbar);
85
gdouble            gtk_progress_bar_get_fraction   (GtkProgressBar *pbar);
86
gdouble               gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar);
86
gdouble            gtk_progress_bar_get_pulse_step (GtkProgressBar *pbar);
87
87
88
gboolean           gtk_progress_bar_get_inverted    (GtkProgressBar *pbar);
88
gboolean           gtk_progress_bar_get_inverted    (GtkProgressBar *pbar);
89
void               gtk_progress_bar_set_ellipsize (GtkProgressBar     *pbar,
89
void               gtk_progress_bar_set_ellipsize (GtkProgressBar     *pbar,
(-)a/gtk/gtkrecentfilter.c (-1 / +1 lines)
Lines 458-464 gtk_recent_filter_set_name (GtkRecentFilter *filter, Link Here
458
 *
458
 *
459
 * Since: 2.10
459
 * Since: 2.10
460
 */
460
 */
461
G_CONST_RETURN gchar *
461
const gchar *
462
gtk_recent_filter_get_name (GtkRecentFilter *filter)
462
gtk_recent_filter_get_name (GtkRecentFilter *filter)
463
{
463
{
464
  g_return_val_if_fail (GTK_IS_RECENT_FILTER (filter), NULL);
464
  g_return_val_if_fail (GTK_IS_RECENT_FILTER (filter), NULL);
(-)a/gtk/gtkrecentfilter.h (-1 / +1 lines)
Lines 99-105 GType gtk_recent_filter_get_type (void) G_GNUC_CONST; Link Here
99
GtkRecentFilter *     gtk_recent_filter_new      (void);
99
GtkRecentFilter *     gtk_recent_filter_new      (void);
100
void                  gtk_recent_filter_set_name (GtkRecentFilter *filter,
100
void                  gtk_recent_filter_set_name (GtkRecentFilter *filter,
101
						  const gchar     *name);
101
						  const gchar     *name);
102
G_CONST_RETURN gchar *gtk_recent_filter_get_name (GtkRecentFilter *filter);
102
const gchar *         gtk_recent_filter_get_name (GtkRecentFilter *filter);
103
103
104
void gtk_recent_filter_add_mime_type      (GtkRecentFilter      *filter,
104
void gtk_recent_filter_add_mime_type      (GtkRecentFilter      *filter,
105
					   const gchar          *mime_type);
105
					   const gchar          *mime_type);
(-)a/gtk/gtkrecentmanager.c (-4 / +4 lines)
Lines 1539-1545 gtk_recent_info_unref (GtkRecentInfo *info) Link Here
1539
 *
1539
 *
1540
 * Since: 2.10
1540
 * Since: 2.10
1541
 */
1541
 */
1542
G_CONST_RETURN gchar *
1542
const gchar *
1543
gtk_recent_info_get_uri (GtkRecentInfo *info)
1543
gtk_recent_info_get_uri (GtkRecentInfo *info)
1544
{
1544
{
1545
  g_return_val_if_fail (info != NULL, NULL);
1545
  g_return_val_if_fail (info != NULL, NULL);
Lines 1559-1565 gtk_recent_info_get_uri (GtkRecentInfo *info) Link Here
1559
 *
1559
 *
1560
 * Since: 2.10
1560
 * Since: 2.10
1561
 */
1561
 */
1562
G_CONST_RETURN gchar *
1562
const gchar *
1563
gtk_recent_info_get_display_name (GtkRecentInfo *info)
1563
gtk_recent_info_get_display_name (GtkRecentInfo *info)
1564
{
1564
{
1565
  g_return_val_if_fail (info != NULL, NULL);
1565
  g_return_val_if_fail (info != NULL, NULL);
Lines 1581-1587 gtk_recent_info_get_display_name (GtkRecentInfo *info) Link Here
1581
 *
1581
 *
1582
 * Since: 2.10
1582
 * Since: 2.10
1583
 **/
1583
 **/
1584
G_CONST_RETURN gchar *
1584
const gchar *
1585
gtk_recent_info_get_description (GtkRecentInfo *info)
1585
gtk_recent_info_get_description (GtkRecentInfo *info)
1586
{
1586
{
1587
  g_return_val_if_fail (info != NULL, NULL);
1587
  g_return_val_if_fail (info != NULL, NULL);
Lines 1600-1606 gtk_recent_info_get_description (GtkRecentInfo *info) Link Here
1600
 *
1600
 *
1601
 * Since: 2.10
1601
 * Since: 2.10
1602
 */
1602
 */
1603
G_CONST_RETURN gchar *
1603
const gchar *
1604
gtk_recent_info_get_mime_type (GtkRecentInfo *info)
1604
gtk_recent_info_get_mime_type (GtkRecentInfo *info)
1605
{
1605
{
1606
  g_return_val_if_fail (info != NULL, NULL);
1606
  g_return_val_if_fail (info != NULL, NULL);
(-)a/gtk/gtkrecentmanager.h (-4 / +4 lines)
Lines 191-200 GType gtk_recent_info_get_type (void) G_GNUC_CONST; Link Here
191
GtkRecentInfo *       gtk_recent_info_ref                  (GtkRecentInfo  *info);
191
GtkRecentInfo *       gtk_recent_info_ref                  (GtkRecentInfo  *info);
192
void                  gtk_recent_info_unref                (GtkRecentInfo  *info);
192
void                  gtk_recent_info_unref                (GtkRecentInfo  *info);
193
193
194
G_CONST_RETURN gchar *gtk_recent_info_get_uri              (GtkRecentInfo  *info);
194
const gchar *         gtk_recent_info_get_uri              (GtkRecentInfo  *info);
195
G_CONST_RETURN gchar *gtk_recent_info_get_display_name     (GtkRecentInfo  *info);
195
const gchar *         gtk_recent_info_get_display_name     (GtkRecentInfo  *info);
196
G_CONST_RETURN gchar *gtk_recent_info_get_description      (GtkRecentInfo  *info);
196
const gchar *         gtk_recent_info_get_description      (GtkRecentInfo  *info);
197
G_CONST_RETURN gchar *gtk_recent_info_get_mime_type        (GtkRecentInfo  *info);
197
const gchar *         gtk_recent_info_get_mime_type        (GtkRecentInfo  *info);
198
time_t                gtk_recent_info_get_added            (GtkRecentInfo  *info);
198
time_t                gtk_recent_info_get_added            (GtkRecentInfo  *info);
199
time_t                gtk_recent_info_get_modified         (GtkRecentInfo  *info);
199
time_t                gtk_recent_info_get_modified         (GtkRecentInfo  *info);
200
time_t                gtk_recent_info_get_visited          (GtkRecentInfo  *info);
200
time_t                gtk_recent_info_get_visited          (GtkRecentInfo  *info);
(-)a/gtk/gtksearchenginebeagle.c (-1 / +1 lines)
Lines 63-69 typedef enum Link Here
63
static gboolean (*beagle_client_send_request_async) (BeagleClient   *client,
63
static gboolean (*beagle_client_send_request_async) (BeagleClient   *client,
64
						     BeagleRequest  *request,
64
						     BeagleRequest  *request,
65
						     GError        **err) = NULL;
65
						     GError        **err) = NULL;
66
static G_CONST_RETURN char *(*beagle_hit_get_uri) (BeagleHit *hit) = NULL;
66
static const char *(*beagle_hit_get_uri) (BeagleHit *hit) = NULL;
67
static GSList *(*beagle_hits_added_response_get_hits) (BeagleHitsAddedResponse *response) = NULL;
67
static GSList *(*beagle_hits_added_response_get_hits) (BeagleHitsAddedResponse *response) = NULL;
68
static GSList *(*beagle_hits_subtracted_response_get_uris) (BeagleHitsSubtractedResponse *response) = NULL;
68
static GSList *(*beagle_hits_subtracted_response_get_uris) (BeagleHitsSubtractedResponse *response) = NULL;
69
static BeagleQuery *(*beagle_query_new) (void) = NULL;
69
static BeagleQuery *(*beagle_query_new) (void) = NULL;
(-)a/gtk/gtkstatusicon.c (-3 / +3 lines)
Lines 2102-2108 gtk_status_icon_get_pixbuf (GtkStatusIcon *status_icon) Link Here
2102
 *
2102
 *
2103
 * Since: 2.10
2103
 * Since: 2.10
2104
 **/
2104
 **/
2105
G_CONST_RETURN gchar *
2105
const gchar *
2106
gtk_status_icon_get_stock (GtkStatusIcon *status_icon)
2106
gtk_status_icon_get_stock (GtkStatusIcon *status_icon)
2107
{
2107
{
2108
  GtkStatusIconPrivate *priv;
2108
  GtkStatusIconPrivate *priv;
Lines 2134-2140 gtk_status_icon_get_stock (GtkStatusIcon *status_icon) Link Here
2134
 *
2134
 *
2135
 * Since: 2.10
2135
 * Since: 2.10
2136
 **/
2136
 **/
2137
G_CONST_RETURN gchar *
2137
const gchar *
2138
gtk_status_icon_get_icon_name (GtkStatusIcon *status_icon)
2138
gtk_status_icon_get_icon_name (GtkStatusIcon *status_icon)
2139
{
2139
{
2140
  GtkStatusIconPrivate *priv;
2140
  GtkStatusIconPrivate *priv;
Lines 2887-2893 gtk_status_icon_set_title (GtkStatusIcon *status_icon, Link Here
2887
 *
2887
 *
2888
 * Since: 2.18
2888
 * Since: 2.18
2889
 */
2889
 */
2890
G_CONST_RETURN gchar *
2890
const gchar *
2891
gtk_status_icon_get_title (GtkStatusIcon *status_icon)
2891
gtk_status_icon_get_title (GtkStatusIcon *status_icon)
2892
{
2892
{
2893
  GtkStatusIconPrivate *priv;
2893
  GtkStatusIconPrivate *priv;
(-)a/gtk/gtkstatusicon.h (-3 / +3 lines)
Lines 102-109 void gtk_status_icon_set_from_gicon (GtkStatusIcon *st Link Here
102
GtkImageType          gtk_status_icon_get_storage_type   (GtkStatusIcon      *status_icon);
102
GtkImageType          gtk_status_icon_get_storage_type   (GtkStatusIcon      *status_icon);
103
103
104
GdkPixbuf            *gtk_status_icon_get_pixbuf         (GtkStatusIcon      *status_icon);
104
GdkPixbuf            *gtk_status_icon_get_pixbuf         (GtkStatusIcon      *status_icon);
105
G_CONST_RETURN gchar *gtk_status_icon_get_stock          (GtkStatusIcon      *status_icon);
105
const gchar *         gtk_status_icon_get_stock          (GtkStatusIcon      *status_icon);
106
G_CONST_RETURN gchar *gtk_status_icon_get_icon_name      (GtkStatusIcon      *status_icon);
106
const gchar *         gtk_status_icon_get_icon_name      (GtkStatusIcon      *status_icon);
107
GIcon                *gtk_status_icon_get_gicon          (GtkStatusIcon      *status_icon);
107
GIcon                *gtk_status_icon_get_gicon          (GtkStatusIcon      *status_icon);
108
108
109
gint                  gtk_status_icon_get_size           (GtkStatusIcon      *status_icon);
109
gint                  gtk_status_icon_get_size           (GtkStatusIcon      *status_icon);
Lines 120-126 void gtk_status_icon_set_tooltip_markup (GtkStatusIcon *st Link Here
120
                                                          const gchar        *markup);
120
                                                          const gchar        *markup);
121
void                  gtk_status_icon_set_title          (GtkStatusIcon      *status_icon,
121
void                  gtk_status_icon_set_title          (GtkStatusIcon      *status_icon,
122
                                                          const gchar        *title);
122
                                                          const gchar        *title);
123
G_CONST_RETURN gchar *gtk_status_icon_get_title          (GtkStatusIcon      *status_icon);
123
const gchar *         gtk_status_icon_get_title          (GtkStatusIcon      *status_icon);
124
void                  gtk_status_icon_set_name           (GtkStatusIcon      *status_icon,
124
void                  gtk_status_icon_set_name           (GtkStatusIcon      *status_icon,
125
                                                          const gchar        *name);
125
                                                          const gchar        *name);
126
void                  gtk_status_icon_set_visible        (GtkStatusIcon      *status_icon,
126
void                  gtk_status_icon_set_visible        (GtkStatusIcon      *status_icon,
(-)a/gtk/gtkstylecontext.c (-1 / +1 lines)
Lines 1696-1702 gtk_style_context_set_path (GtkStyleContext *context, Link Here
1696
 *
1696
 *
1697
 * Since: 3.0
1697
 * Since: 3.0
1698
 **/
1698
 **/
1699
G_CONST_RETURN GtkWidgetPath *
1699
const GtkWidgetPath *
1700
gtk_style_context_get_path (GtkStyleContext *context)
1700
gtk_style_context_get_path (GtkStyleContext *context)
1701
{
1701
{
1702
  GtkStyleContextPrivate *priv;
1702
  GtkStyleContextPrivate *priv;
(-)a/gtk/gtkstylecontext.h (-1 / +1 lines)
Lines 556-562 gboolean gtk_style_context_state_is_running (GtkStyleContext *context, Link Here
556
556
557
void          gtk_style_context_set_path     (GtkStyleContext *context,
557
void          gtk_style_context_set_path     (GtkStyleContext *context,
558
                                              GtkWidgetPath   *path);
558
                                              GtkWidgetPath   *path);
559
G_CONST_RETURN GtkWidgetPath * gtk_style_context_get_path (GtkStyleContext *context);
559
const GtkWidgetPath * gtk_style_context_get_path (GtkStyleContext *context);
560
560
561
GList *  gtk_style_context_list_classes (GtkStyleContext *context);
561
GList *  gtk_style_context_list_classes (GtkStyleContext *context);
562
562
(-)a/gtk/gtktextmark.h (-1 / +1 lines)
Lines 93-99 void gtk_text_mark_set_visible (GtkTextMark *mark, Link Here
93
                                                      gboolean     setting);
93
                                                      gboolean     setting);
94
gboolean              gtk_text_mark_get_visible      (GtkTextMark *mark);
94
gboolean              gtk_text_mark_get_visible      (GtkTextMark *mark);
95
95
96
G_CONST_RETURN gchar* gtk_text_mark_get_name         (GtkTextMark *mark);
96
const gchar *         gtk_text_mark_get_name         (GtkTextMark *mark);
97
gboolean              gtk_text_mark_get_deleted      (GtkTextMark *mark);
97
gboolean              gtk_text_mark_get_deleted      (GtkTextMark *mark);
98
GtkTextBuffer*        gtk_text_mark_get_buffer       (GtkTextMark *mark);
98
GtkTextBuffer*        gtk_text_mark_get_buffer       (GtkTextMark *mark);
99
gboolean              gtk_text_mark_get_left_gravity (GtkTextMark *mark);
99
gboolean              gtk_text_mark_get_left_gravity (GtkTextMark *mark);
(-)a/gtk/gtkthemingengine.c (-1 / +1 lines)
Lines 649-655 gtk_theming_engine_state_is_running (GtkThemingEngine *engine, Link Here
649
 *
649
 *
650
 * Since: 3.0
650
 * Since: 3.0
651
 **/
651
 **/
652
G_CONST_RETURN GtkWidgetPath *
652
const GtkWidgetPath *
653
gtk_theming_engine_get_path (GtkThemingEngine *engine)
653
gtk_theming_engine_get_path (GtkThemingEngine *engine)
654
{
654
{
655
  GtkThemingEnginePrivate *priv;
655
  GtkThemingEnginePrivate *priv;
(-)a/gtk/gtkthemingengine.h (-1 / +1 lines)
Lines 205-211 gboolean gtk_theming_engine_lookup_color (GtkThemingEngine *engine, Link Here
205
                                          const gchar      *color_name,
205
                                          const gchar      *color_name,
206
                                          GdkRGBA          *color);
206
                                          GdkRGBA          *color);
207
207
208
G_CONST_RETURN GtkWidgetPath * gtk_theming_engine_get_path (GtkThemingEngine *engine);
208
const GtkWidgetPath * gtk_theming_engine_get_path (GtkThemingEngine *engine);
209
209
210
gboolean gtk_theming_engine_has_class  (GtkThemingEngine *engine,
210
gboolean gtk_theming_engine_has_class  (GtkThemingEngine *engine,
211
                                        const gchar      *style_class);
211
                                        const gchar      *style_class);
(-)a/gtk/gtktoolbutton.c (-3 / +3 lines)
Lines 1020-1026 gtk_tool_button_set_label (GtkToolButton *button, Link Here
1020
 * 
1020
 * 
1021
 * Since: 2.4
1021
 * Since: 2.4
1022
 **/
1022
 **/
1023
G_CONST_RETURN gchar *
1023
const gchar *
1024
gtk_tool_button_get_label (GtkToolButton *button)
1024
gtk_tool_button_get_label (GtkToolButton *button)
1025
{
1025
{
1026
  g_return_val_if_fail (GTK_IS_TOOL_BUTTON (button), NULL);
1026
  g_return_val_if_fail (GTK_IS_TOOL_BUTTON (button), NULL);
Lines 1121-1127 gtk_tool_button_set_stock_id (GtkToolButton *button, Link Here
1121
 * 
1121
 * 
1122
 * Since: 2.4
1122
 * Since: 2.4
1123
 **/
1123
 **/
1124
G_CONST_RETURN gchar *
1124
const gchar *
1125
gtk_tool_button_get_stock_id (GtkToolButton *button)
1125
gtk_tool_button_get_stock_id (GtkToolButton *button)
1126
{
1126
{
1127
  g_return_val_if_fail (GTK_IS_TOOL_BUTTON (button), NULL);
1127
  g_return_val_if_fail (GTK_IS_TOOL_BUTTON (button), NULL);
Lines 1172-1178 gtk_tool_button_set_icon_name (GtkToolButton *button, Link Here
1172
 * 
1172
 * 
1173
 * Since: 2.8
1173
 * Since: 2.8
1174
 **/
1174
 **/
1175
G_CONST_RETURN gchar*
1175
const gchar*
1176
gtk_tool_button_get_icon_name (GtkToolButton *button)
1176
gtk_tool_button_get_icon_name (GtkToolButton *button)
1177
{
1177
{
1178
  g_return_val_if_fail (GTK_IS_TOOL_BUTTON (button), NULL);
1178
  g_return_val_if_fail (GTK_IS_TOOL_BUTTON (button), NULL);
(-)a/gtk/gtktoolbutton.h (-3 / +3 lines)
Lines 73-88 GtkToolItem *gtk_tool_button_new_from_stock (const gchar *stock_id); Link Here
73
73
74
void                  gtk_tool_button_set_label         (GtkToolButton *button,
74
void                  gtk_tool_button_set_label         (GtkToolButton *button,
75
							 const gchar   *label);
75
							 const gchar   *label);
76
G_CONST_RETURN gchar *gtk_tool_button_get_label         (GtkToolButton *button);
76
const gchar *         gtk_tool_button_get_label         (GtkToolButton *button);
77
void                  gtk_tool_button_set_use_underline (GtkToolButton *button,
77
void                  gtk_tool_button_set_use_underline (GtkToolButton *button,
78
							 gboolean       use_underline);
78
							 gboolean       use_underline);
79
gboolean              gtk_tool_button_get_use_underline (GtkToolButton *button);
79
gboolean              gtk_tool_button_get_use_underline (GtkToolButton *button);
80
void                  gtk_tool_button_set_stock_id      (GtkToolButton *button,
80
void                  gtk_tool_button_set_stock_id      (GtkToolButton *button,
81
							 const gchar   *stock_id);
81
							 const gchar   *stock_id);
82
G_CONST_RETURN gchar *gtk_tool_button_get_stock_id      (GtkToolButton *button);
82
const gchar *         gtk_tool_button_get_stock_id      (GtkToolButton *button);
83
void                  gtk_tool_button_set_icon_name     (GtkToolButton *button,
83
void                  gtk_tool_button_set_icon_name     (GtkToolButton *button,
84
							 const gchar   *icon_name);
84
							 const gchar   *icon_name);
85
G_CONST_RETURN gchar *gtk_tool_button_get_icon_name     (GtkToolButton *button);
85
const gchar *         gtk_tool_button_get_icon_name     (GtkToolButton *button);
86
void                  gtk_tool_button_set_icon_widget   (GtkToolButton *button,
86
void                  gtk_tool_button_set_icon_widget   (GtkToolButton *button,
87
							 GtkWidget     *icon_widget);
87
							 GtkWidget     *icon_widget);
88
GtkWidget *           gtk_tool_button_get_icon_widget   (GtkToolButton *button);
88
GtkWidget *           gtk_tool_button_get_icon_widget   (GtkToolButton *button);
(-)a/gtk/gtktoolitemgroup.c (-1 / +1 lines)
Lines 1985-1991 gtk_tool_item_group_set_ellipsize (GtkToolItemGroup *group, Link Here
1985
 *
1985
 *
1986
 * Since: 2.20
1986
 * Since: 2.20
1987
 */
1987
 */
1988
G_CONST_RETURN gchar*
1988
const gchar*
1989
gtk_tool_item_group_get_label (GtkToolItemGroup *group)
1989
gtk_tool_item_group_get_label (GtkToolItemGroup *group)
1990
{
1990
{
1991
  GtkToolItemGroupPrivate *priv;
1991
  GtkToolItemGroupPrivate *priv;
(-)a/gtk/gtktoolitemgroup.h (-1 / +1 lines)
Lines 78-84 void gtk_tool_item_group_set_ellipsize (GtkToolItemGroup Link Here
78
void                  gtk_tool_item_group_set_header_relief (GtkToolItemGroup   *group,
78
void                  gtk_tool_item_group_set_header_relief (GtkToolItemGroup   *group,
79
                                                             GtkReliefStyle      style);
79
                                                             GtkReliefStyle      style);
80
80
81
G_CONST_RETURN gchar* gtk_tool_item_group_get_label         (GtkToolItemGroup   *group);
81
const gchar *         gtk_tool_item_group_get_label         (GtkToolItemGroup   *group);
82
GtkWidget            *gtk_tool_item_group_get_label_widget  (GtkToolItemGroup   *group);
82
GtkWidget            *gtk_tool_item_group_get_label_widget  (GtkToolItemGroup   *group);
83
gboolean              gtk_tool_item_group_get_collapsed     (GtkToolItemGroup   *group);
83
gboolean              gtk_tool_item_group_get_collapsed     (GtkToolItemGroup   *group);
84
PangoEllipsizeMode    gtk_tool_item_group_get_ellipsize     (GtkToolItemGroup   *group);
84
PangoEllipsizeMode    gtk_tool_item_group_get_ellipsize     (GtkToolItemGroup   *group);
(-)a/gtk/gtktoolpalette.c (-2 / +2 lines)
Lines 1916-1922 _gtk_tool_palette_child_set_drag_source (GtkWidget *child, Link Here
1916
 *
1916
 *
1917
 * Since: 2.20
1917
 * Since: 2.20
1918
 */
1918
 */
1919
G_CONST_RETURN GtkTargetEntry*
1919
const GtkTargetEntry*
1920
gtk_tool_palette_get_drag_target_item (void)
1920
gtk_tool_palette_get_drag_target_item (void)
1921
{
1921
{
1922
  return &dnd_targets[0];
1922
  return &dnd_targets[0];
Lines 1931-1937 gtk_tool_palette_get_drag_target_item (void) Link Here
1931
 *
1931
 *
1932
 * Since: 2.20
1932
 * Since: 2.20
1933
 */
1933
 */
1934
G_CONST_RETURN GtkTargetEntry*
1934
const GtkTargetEntry*
1935
gtk_tool_palette_get_drag_target_group (void)
1935
gtk_tool_palette_get_drag_target_group (void)
1936
{
1936
{
1937
  return &dnd_targets[1];
1937
  return &dnd_targets[1];
(-)a/gtk/gtktoolpalette.h (-2 / +2 lines)
Lines 133-140 GtkAdjustment* gtk_tool_palette_get_vadjustment (GtkToolPa Link Here
133
133
134
#endif
134
#endif
135
135
136
G_CONST_RETURN GtkTargetEntry* gtk_tool_palette_get_drag_target_item  (void) G_GNUC_CONST;
136
const GtkTargetEntry*          gtk_tool_palette_get_drag_target_item  (void) G_GNUC_CONST;
137
G_CONST_RETURN GtkTargetEntry* gtk_tool_palette_get_drag_target_group (void) G_GNUC_CONST;
137
const GtkTargetEntry*          gtk_tool_palette_get_drag_target_group (void) G_GNUC_CONST;
138
138
139
139
140
G_END_DECLS
140
G_END_DECLS
(-)a/gtk/gtktreeviewcolumn.c (-1 / +1 lines)
Lines 2369-2375 gtk_tree_view_column_set_title (GtkTreeViewColumn *tree_column, Link Here
2369
 * Return value: the title of the column. This string should not be
2369
 * Return value: the title of the column. This string should not be
2370
 * modified or freed.
2370
 * modified or freed.
2371
 **/
2371
 **/
2372
G_CONST_RETURN gchar *
2372
const gchar *
2373
gtk_tree_view_column_get_title (GtkTreeViewColumn *tree_column)
2373
gtk_tree_view_column_get_title (GtkTreeViewColumn *tree_column)
2374
{
2374
{
2375
  g_return_val_if_fail (GTK_IS_TREE_VIEW_COLUMN (tree_column), NULL);
2375
  g_return_val_if_fail (GTK_IS_TREE_VIEW_COLUMN (tree_column), NULL);
(-)a/gtk/gtktreeviewcolumn.h (-1 / +1 lines)
Lines 160-166 void gtk_tree_view_column_clicked (GtkTreeViewCol Link Here
160
 */
160
 */
161
void                    gtk_tree_view_column_set_title           (GtkTreeViewColumn       *tree_column,
161
void                    gtk_tree_view_column_set_title           (GtkTreeViewColumn       *tree_column,
162
								  const gchar             *title);
162
								  const gchar             *title);
163
G_CONST_RETURN gchar   *gtk_tree_view_column_get_title           (GtkTreeViewColumn       *tree_column);
163
const gchar *           gtk_tree_view_column_get_title           (GtkTreeViewColumn       *tree_column);
164
void                    gtk_tree_view_column_set_expand          (GtkTreeViewColumn       *tree_column,
164
void                    gtk_tree_view_column_set_expand          (GtkTreeViewColumn       *tree_column,
165
								  gboolean                 expand);
165
								  gboolean                 expand);
166
gboolean                gtk_tree_view_column_get_expand          (GtkTreeViewColumn       *tree_column);
166
gboolean                gtk_tree_view_column_get_expand          (GtkTreeViewColumn       *tree_column);
(-)a/gtk/gtkwidget.c (-1 / +1 lines)
Lines 6973-6979 gtk_widget_set_name (GtkWidget *widget, Link Here
6973
 * Return value: name of the widget. This string is owned by GTK+ and
6973
 * Return value: name of the widget. This string is owned by GTK+ and
6974
 * should not be modified or freed
6974
 * should not be modified or freed
6975
 **/
6975
 **/
6976
G_CONST_RETURN gchar*
6976
const gchar*
6977
gtk_widget_get_name (GtkWidget *widget)
6977
gtk_widget_get_name (GtkWidget *widget)
6978
{
6978
{
6979
  GtkWidgetPrivate *priv;
6979
  GtkWidgetPrivate *priv;
(-)a/gtk/gtkwidget.h (-1 / +1 lines)
Lines 577-583 gboolean gtk_widget_device_is_shadowed (GtkWidget *widget, Link Here
577
577
578
void                  gtk_widget_set_name               (GtkWidget    *widget,
578
void                  gtk_widget_set_name               (GtkWidget    *widget,
579
							 const gchar  *name);
579
							 const gchar  *name);
580
G_CONST_RETURN gchar* gtk_widget_get_name               (GtkWidget    *widget);
580
const gchar *         gtk_widget_get_name               (GtkWidget    *widget);
581
581
582
void                  gtk_widget_set_state              (GtkWidget    *widget,
582
void                  gtk_widget_set_state              (GtkWidget    *widget,
583
							 GtkStateType  state);
583
							 GtkStateType  state);
(-)a/gtk/gtkwidgetpath.c (-1 / +1 lines)
Lines 337-343 gtk_widget_path_iter_set_object_type (GtkWidgetPath *path, Link Here
337
 *
337
 *
338
 * Returns: The widget name, or %NULL if none was set.
338
 * Returns: The widget name, or %NULL if none was set.
339
 **/
339
 **/
340
G_CONST_RETURN gchar *
340
const gchar *
341
gtk_widget_path_iter_get_name (const GtkWidgetPath *path,
341
gtk_widget_path_iter_get_name (const GtkWidgetPath *path,
342
                               gint                 pos)
342
                               gint                 pos)
343
{
343
{
(-)a/gtk/gtkwidgetpath.h (-1 / +1 lines)
Lines 52-58 void gtk_widget_path_iter_set_object_type (GtkWidgetPath *p Link Here
52
                                                          gint                 pos,
52
                                                          gint                 pos,
53
                                                          GType                type);
53
                                                          GType                type);
54
54
55
G_CONST_RETURN gchar * gtk_widget_path_iter_get_name  (const GtkWidgetPath *path,
55
const gchar *          gtk_widget_path_iter_get_name  (const GtkWidgetPath *path,
56
                                                       gint                 pos);
56
                                                       gint                 pos);
57
void                   gtk_widget_path_iter_set_name  (GtkWidgetPath       *path,
57
void                   gtk_widget_path_iter_set_name  (GtkWidgetPath       *path,
58
                                                       gint                 pos,
58
                                                       gint                 pos,
(-)a/gtk/gtkwindow.c (-2 / +2 lines)
Lines 1584-1590 gtk_window_set_title (GtkWindow *window, Link Here
1584
 *    been set explicitely. The returned string is owned by the widget
1584
 *    been set explicitely. The returned string is owned by the widget
1585
 *    and must not be modified or freed.
1585
 *    and must not be modified or freed.
1586
 **/
1586
 **/
1587
G_CONST_RETURN gchar *
1587
const gchar *
1588
gtk_window_get_title (GtkWindow *window)
1588
gtk_window_get_title (GtkWindow *window)
1589
{
1589
{
1590
  g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
1590
  g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
Lines 1746-1752 gtk_window_set_startup_id (GtkWindow *window, Link Here
1746
 *   returned is owned by the widget and must not be modified
1746
 *   returned is owned by the widget and must not be modified
1747
 *   or freed.
1747
 *   or freed.
1748
 **/
1748
 **/
1749
G_CONST_RETURN gchar *
1749
const gchar *
1750
gtk_window_get_role (GtkWindow *window)
1750
gtk_window_get_role (GtkWindow *window)
1751
{
1751
{
1752
  g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
1752
  g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
(-)a/gtk/gtkwindow.h (-7 / +4 lines)
Lines 108-114 GType gtk_window_get_type (void) G_GNUC_CONST; Link Here
108
GtkWidget* gtk_window_new                      (GtkWindowType        type);
108
GtkWidget* gtk_window_new                      (GtkWindowType        type);
109
void       gtk_window_set_title                (GtkWindow           *window,
109
void       gtk_window_set_title                (GtkWindow           *window,
110
						const gchar         *title);
110
						const gchar         *title);
111
G_CONST_RETURN gchar *gtk_window_get_title     (GtkWindow           *window);
111
const gchar * gtk_window_get_title             (GtkWindow           *window);
112
void       gtk_window_set_wmclass              (GtkWindow           *window,
112
void       gtk_window_set_wmclass              (GtkWindow           *window,
113
						const gchar         *wmclass_name,
113
						const gchar         *wmclass_name,
114
						const gchar         *wmclass_class);
114
						const gchar         *wmclass_class);
Lines 116-122 void gtk_window_set_role (GtkWindow *window, Link Here
116
                                                const gchar         *role);
116
                                                const gchar         *role);
117
void       gtk_window_set_startup_id           (GtkWindow           *window,
117
void       gtk_window_set_startup_id           (GtkWindow           *window,
118
                                                const gchar         *startup_id);
118
                                                const gchar         *startup_id);
119
G_CONST_RETURN gchar *gtk_window_get_role      (GtkWindow           *window);
119
const gchar * gtk_window_get_role              (GtkWindow           *window);
120
void       gtk_window_add_accel_group          (GtkWindow           *window,
120
void       gtk_window_add_accel_group          (GtkWindow           *window,
121
						GtkAccelGroup	    *accel_group);
121
						GtkAccelGroup	    *accel_group);
122
void       gtk_window_remove_accel_group       (GtkWindow           *window,
122
void       gtk_window_remove_accel_group       (GtkWindow           *window,
Lines 202-215 gboolean gtk_window_set_icon_from_file (GtkWindow *window, Link Here
202
						    const gchar *filename,
202
						    const gchar *filename,
203
						    GError     **err);
203
						    GError     **err);
204
GdkPixbuf* gtk_window_get_icon                     (GtkWindow  *window);
204
GdkPixbuf* gtk_window_get_icon                     (GtkWindow  *window);
205
G_CONST_RETURN 
205
const gchar * gtk_window_get_icon_name             (GtkWindow  *window);
206
gchar     *gtk_window_get_icon_name                (GtkWindow  *window);
207
void       gtk_window_set_default_icon_list        (GList      *list);
206
void       gtk_window_set_default_icon_list        (GList      *list);
208
GList*     gtk_window_get_default_icon_list        (void);
207
GList*     gtk_window_get_default_icon_list        (void);
209
void       gtk_window_set_default_icon             (GdkPixbuf  *icon);
208
void       gtk_window_set_default_icon             (GdkPixbuf  *icon);
210
void       gtk_window_set_default_icon_name        (const gchar *name);
209
void       gtk_window_set_default_icon_name        (const gchar *name);
211
G_CONST_RETURN
210
const gchar * gtk_window_get_default_icon_name     (void);
212
gchar     *gtk_window_get_default_icon_name        (void);
213
gboolean   gtk_window_set_default_icon_from_file   (const gchar *filename,
211
gboolean   gtk_window_set_default_icon_from_file   (const gchar *filename,
214
						    GError     **err);
212
						    GError     **err);
215
213
216
- 

Return to bug 379897