*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include "ev-navigation-action.h"
#include "ev-navigation-action-widget.h"
+
enum
{
WIDGET_ACTIVATE_LINK,
title = ev_link_get_title (link);
item = gtk_image_menu_item_new_with_label (title);
- gtk_label_set_use_markup (GTK_LABEL (gtk_bin_get_child (GTK_BIN (item))), TRUE);
+ label = GTK_LABEL (gtk_bin_get_child (GTK_BIN (item)));
+ gtk_label_set_use_markup (label, TRUE);
g_object_set_data (G_OBJECT (item), "index",
GINT_TO_POINTER (index));
- label = GTK_LABEL (GTK_BIN (item)->child);
gtk_label_set_ellipsize (label, PANGO_ELLIPSIZE_END);
gtk_label_set_max_width_chars (label, MAX_LABEL_LENGTH);