~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/gtk-migrating-GtkLinkButton.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-09-17 11:15:05 UTC
  • mto: (72.1.1 lenny) (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20070917111505-giz9c5xltxkb5y54
Tags: upstream-2.12.0
ImportĀ upstreamĀ versionĀ 2.12.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>Migrating from GnomeHRef to GtkLinkButton</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
7
<link rel="start" href="index.html" title="GTK+ Reference Manual">
8
8
<link rel="up" href="migrating.html" title="Part&#160;IV.&#160;Migrating from Previous Versions of GTK+">
9
9
<link rel="prev" href="gtkrecent-advanced.html" title="Advanced usage">
10
10
<link rel="next" href="gtk-migrating-GtkBuilder.html" title="Migrating from libglade to GtkBuilder">
11
 
<meta name="generator" content="GTK-Doc V1.7 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="gtk.html" title="Part&#160;I.&#160;GTK+ Overview">
14
14
<link rel="part" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
71
71
<div class="titlepage"><div><div><h2 class="title">
72
72
<a name="gtk-migrating-GtkLinkButton"></a>Migrating from GnomeHRef to GtkLinkButton</h2></div></div></div>
73
73
<p>
74
 
    Since version 2.10, GTK+ provides the <a href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a> widget as a
 
74
    Since version 2.10, GTK+ provides the <a class="link" href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a> widget as a
75
75
    replacement for the <span class="structname">GnomeHRef</span> widget
76
76
    in the libgnomeui library.
77
77
  </p>
78
78
<p>
79
79
    Porting an application from <span class="structname">GnomeHRef</span> to
80
 
    <a href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a> is very simple. <a href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a> does not have a
81
 
    default action for <a href="GtkButton.html#GtkButton-clicked"><span class="type">::clicked</span></a> signal. So instead of simply 
 
80
    <a class="link" href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a> is very simple. <a class="link" href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a> does not have a
 
81
    default action for <a class="link" href="GtkButton.html#GtkButton-clicked"><span class="type">"clicked"</span></a> signal. So instead of simply 
82
82
    creating the widget
83
83
    </p>
84
84
<div class="informalexample"><pre class="programlisting">
87
87
      button = gnome_href_new (url, "");
88
88
    </pre></div>
89
89
<p>
90
 
    you will have to handle the activation of the <a href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a>, using
 
90
    you will have to handle the activation of the <a class="link" href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a>, using
91
91
    the ::clicked signal for instance
92
92
    </p>
93
93
<div class="informalexample"><pre class="programlisting">
110
110
                          G_CALLBACK (link_button_clicked_cb), NULL);
111
111
     </pre></div>
112
112
<p>
113
 
    If you have more than one <a href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a> instead of connecting
 
113
    If you have more than one <a class="link" href="GtkLinkButton.html" title="GtkLinkButton"><span class="type">GtkLinkButton</span></a> instead of connecting
114
114
    a signal to each one, you can use a "hook function" which will be
115
115
    called whenever a user activates a link button
116
116
    </p>