Sponsored Content
Top Forums Web Development New Font Awesome Icons in Quick Reply Editor Post 303027083 by Neo on Saturday 8th of December 2018 11:36:43 AM
Old 12-08-2018
OK... I found out why I cannot change a few of the icons without breaking things

The original code for the quick editor does a string match on a couple of the HTML strings that represent the original icons. If I change the icon code, the toolbar breaks. This string match is used to insert addition custom icons after the match icon strings.

This is not a problem but I will need to write the PHP code to do a string match using some other string. So my TODO list has increased regarding cleaning up these editors.

Cheers.
 

6 More Discussions You Might Find Interesting

1. What is on Your Mind?

New jQuery to view Post Icons in Editor

I was reformatting the "advanced" WYSIWYG editor with bootstrap css and while there made the post icons to be invisible by default; so if you click on the text below the editor: Post Icons - Click to view the full list of message icons to add to your post: ... (0 Replies)
Discussion started by: Neo
0 Replies

2. What is on Your Mind?

New Icons Coming from Font Awesome

Finally making some progress on getting rid of the 10 year old buttons with modern day fonts and icons thanks to a responsive web design tutorial by Brad Traversy who's video pointed me to Font Awesome. The buttons and icons were pretty easy to implement but it too me a number of hours... (39 Replies)
Discussion started by: Neo
39 Replies

3. What is on Your Mind?

Small bug in the Quick Editor function in postbit

Hey, There was a small bug in the Quick Editor function in postbit, but I fixed it (basically a double quote was missing from an element id): <div id="post_message_$post" class="neo-message-area">$post</div> Was <div id="post_message_$post class="neo-message-area">$post</div> Should... (1 Reply)
Discussion started by: Neo
1 Replies

4. What is on Your Mind?

New Mobile Navbar Icons from Font Awesome

Just changed the mobile site to use Font Awesome icons. Here is the new top navbar view (unregistered users) https://www.unix.com/members/1-albums214-picture903.jpeg (2 Replies)
Discussion started by: Neo
2 Replies

5. What is on Your Mind?

Quick Update on UNIX.COM Site Renovation: Bootstrap, Font Awesome and jQuery

Here is an update on the site renovation: After a lot of analysis and example programming, including testing out a number of Javascript framework and libraries, in the short term, we are getting the most bang-for-the-buck from these three basic, core tech areas: Bootstrap (CSS and... (2 Replies)
Discussion started by: Neo
2 Replies

6. What is on Your Mind?

New CODE and ICODE Editor Button Icons

As promised, I have changed the CODE tag icon and the ICODE tag icon in our WYSIWYG editors to use Font Awesome. CODE Tag = fa-code ICODE Tag = fa-terminal https://www.unix.com/members/1-albums215-picture966.png The reason for this change is to continue our move toward Font Awesome... (4 Replies)
Discussion started by: Neo
4 Replies
Gtk2::Toolbar(3)					User Contributed Perl Documentation					  Gtk2::Toolbar(3)

NAME
Gtk2::Toolbar HIERARCHY
Glib::Object +----Glib::InitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::Toolbar INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface Gtk2::Buildable Gtk2::ToolShell Gtk2::Orientable METHODS
widget = Gtk2::Toolbar->new widget = $toolbar->append_element ($type, $widget, $text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef) o $type (Gtk2::ToolbarChildType) o $widget (Gtk2::Widget or undef) o $text (string) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) o $icon (Gtk2::Widget or undef) o $callback (subroutine) o $user_data (scalar) widget = $toolbar->append_item ($text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef) o $text (string) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) o $icon (Gtk2::Widget or undef) o $callback (subroutine) o $user_data (scalar) $toolbar->append_space $toolbar->append_widget ($widget, $tooltip_text, $tooltip_private_text) o $widget (Gtk2::Widget) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) $toolbar->set_drop_highlight_item ($tool_item, $index) o $tool_item (Gtk2::ToolItem or undef) o $index (integer) Since: gtk+ 2.4 integer = $toolbar->get_drop_index ($x, $y) o $x (integer) o $y (integer) Since: gtk+ 2.4 iconsize = $toolbar->get_icon_size $toolbar->set_icon_size ($icon_size) o $icon_size (Gtk2::IconSize) $toolbar->insert ($item, $pos) o $item (Gtk2::ToolItem) o $pos (integer) Since: gtk+ 2.4 widget = $toolbar->insert_element ($type, $widget, $text, $tooltip_text, $tooltip_private_text, $icon, $callback, $user_data, $position) o $type (Gtk2::ToolbarChildType) o $widget (Gtk2::Widget or undef) o $text (string) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) o $icon (Gtk2::Widget or undef) o $callback (subroutine) o $user_data (scalar) o $position (integer) widget = $toolbar->insert_item ($text, $tooltip_text, $tooltip_private_text, $icon, $callback, $user_data, $position) o $text (string) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) o $icon (Gtk2::Widget or undef) o $callback (subroutine) o $user_data (scalar) o $position (integer) $toolbar->insert_space ($position) o $position (integer) widget = $toolbar->insert_stock ($stock_id, $tooltip_text, $tooltip_private_text, $callback, $user_data, $position) o $stock_id (string) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) o $callback (subroutine) o $user_data (scalar) o $position (integer) $toolbar->insert_widget ($widget, $tooltip_text, $tooltip_private_text, $position) o $widget (Gtk2::Widget) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) o $position (integer) integer = $toolbar->get_item_index ($item) o $item (Gtk2::ToolItem) Since: gtk+ 2.4 integer = $toolbar->get_n_items Since: gtk+ 2.4 toolitem or undef = $toolbar->get_nth_item ($n) o $n (integer) Since: gtk+ 2.4 orientation = $toolbar->get_orientation $toolbar->set_orientation ($orientation) o $orientation (Gtk2::Orientation) widget = $toolbar->prepend_element ($type, $widget, $text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef) o $type (Gtk2::ToolbarChildType) o $widget (Gtk2::Widget or undef) o $text (string) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) o $icon (Gtk2::Widget or undef) o $callback (subroutine) o $user_data (scalar) widget = $toolbar->prepend_item ($text, $tooltip_text, $tooltip_private_text, $icon, $callback=undef, $user_data=undef) o $text (string) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) o $icon (Gtk2::Widget or undef) o $callback (subroutine) o $user_data (scalar) $toolbar->prepend_space $toolbar->prepend_widget ($widget, $tooltip_text, $tooltip_private_text) o $widget (Gtk2::Widget) o $tooltip_text (string or undef) o $tooltip_private_text (string or undef) reliefstyle = $toolbar->get_relief_style Since: gtk+ 2.4 $toolbar->remove_space ($position) o $position (integer) boolean = $toolbar->get_show_arrow Since: gtk+ 2.4 $toolbar->set_show_arrow ($show_arrow) o $show_arrow (boolean) Since: gtk+ 2.4 toolbarstyle = $toolbar->get_style $toolbar->set_style ($style) o $style (Gtk2::ToolbarStyle) boolean = $toolbar->get_tooltips $toolbar->set_tooltips ($enable) o $enable (boolean) $toolbar->unset_icon_size $toolbar->unset_style PROPERTIES
'icon-size' (integer : readable / writable / private) Size of icons in this toolbar 'icon-size-set' (boolean : readable / writable / private) Whether the icon-size property has been set 'show-arrow' (boolean : readable / writable / private) If an arrow should be shown if the toolbar doesn't fit 'toolbar-style' (Gtk2::ToolbarStyle : readable / writable / private) How to draw the toolbar 'tooltips' (boolean : readable / writable / private) If the tooltips of the toolbar should be active or not SIGNALS
orientation-changed (Gtk2::Toolbar, Gtk2::Orientation) style-changed (Gtk2::Toolbar, Gtk2::ToolbarStyle) boolean = popup-context-menu (Gtk2::Toolbar, integer, integer, integer) boolean = focus-home-or-end (Gtk2::Toolbar, boolean) ENUMS AND FLAGS
enum Gtk2::IconSize o 'invalid' / 'GTK_ICON_SIZE_INVALID' o 'menu' / 'GTK_ICON_SIZE_MENU' o 'small-toolbar' / 'GTK_ICON_SIZE_SMALL_TOOLBAR' o 'large-toolbar' / 'GTK_ICON_SIZE_LARGE_TOOLBAR' o 'button' / 'GTK_ICON_SIZE_BUTTON' o 'dnd' / 'GTK_ICON_SIZE_DND' o 'dialog' / 'GTK_ICON_SIZE_DIALOG' enum Gtk2::Orientation o 'horizontal' / 'GTK_ORIENTATION_HORIZONTAL' o 'vertical' / 'GTK_ORIENTATION_VERTICAL' enum Gtk2::ReliefStyle o 'normal' / 'GTK_RELIEF_NORMAL' o 'half' / 'GTK_RELIEF_HALF' o 'none' / 'GTK_RELIEF_NONE' enum Gtk2::ToolbarChildType o 'space' / 'GTK_TOOLBAR_CHILD_SPACE' o 'button' / 'GTK_TOOLBAR_CHILD_BUTTON' o 'togglebutton' / 'GTK_TOOLBAR_CHILD_TOGGLEBUTTON' o 'radiobutton' / 'GTK_TOOLBAR_CHILD_RADIOBUTTON' o 'widget' / 'GTK_TOOLBAR_CHILD_WIDGET' enum Gtk2::ToolbarStyle o 'icons' / 'GTK_TOOLBAR_ICONS' o 'text' / 'GTK_TOOLBAR_TEXT' o 'both' / 'GTK_TOOLBAR_BOTH' o 'both-horiz' / 'GTK_TOOLBAR_BOTH_HORIZ' SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team. This software is licensed under the LGPL. See Gtk2 for a full notice. perl v5.12.1 2010-07-05 Gtk2::Toolbar(3)
All times are GMT -4. The time now is 04:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy